DataWindow Color Flash


Edit color properties of datawindow, datawindow column, refresh interface with the timer interval property of datawindow
1 2 3 | if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ) //or if (mod(second(now()), 2) = 0, rgb(0,0,255), rgb(255,0,0)) |
Example Datawindow
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | release 10.5; datawindow(units=0 timer_interval=1 color=16777215 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 97 print.margin.bottom = 97 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes print.preview.outline=yes hidegrayline=no grid.lines=0 selected.mouse=no ) header(height=76 color="536870912" ) summary(height=0 color="536870912" ) footer(height=0 color="536870912" ) detail(height=84 color="536870912~tif ( mod ( second ( now( ) ) ,3) = 0 ,RGB(255,255,224) ,if ( mod ( second ( now( ) ) ,3) =1 ,RGB(255,240,245) ,RGB(255,251,240) ) )" ) table(column=(type=char(40) updatewhereclause=yes name=group_id dbname="examples_groups.group_id" ) column=(type=char(32765) updatewhereclause=yes name=description dbname="examples.description" ) column=(type=char(60) updatewhereclause=yes name=title dbname="examples.title" ) column=(type=char(40) updatewhereclause=yes name=window dbname="examples.window" ) column=(type=char(5) updatewhereclause=yes name=version dbname="examples.version" ) column=(type=char(32765) updatewhereclause=yes name=technique dbname="examples.technique" ) column=(type=long updatewhereclause=yes name=new dbname="examples.new" ) column=(type=long updatewhereclause=yes name=enhanced dbname="examples.enhanced" ) column=(type=char(40) updatewhereclause=yes name=ostype dbname="examples.ostype" ) column=(type=char(17) updatewhereclause=yes name=pbtype dbname="examples.pbtype" ) column=(type=long updatewhereclause=yes name=exhelp dbname="examples.exhelp" ) retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"examples~" ) TABLE(NAME=~"examples_groups~" ) COLUMN(NAME=~"examples_groups.group_id~") COLUMN(NAME=~"examples.description~") COLUMN(NAME=~"examples.title~") COLUMN(NAME=~"examples.window~") COLUMN(NAME=~"examples.version~") COLUMN(NAME=~"examples.technique~") COLUMN(NAME=~"examples.new~") COLUMN(NAME=~"examples.enhanced~") COLUMN(NAME=~"examples.ostype~") COLUMN(NAME=~"examples.pbtype~") COLUMN(NAME=~"examples.exhelp~") JOIN (LEFT=~"examples.window~" OP =~"=~"RIGHT=~"examples_groups.window~" )) ORDER(NAME=~"examples_groups.group_id~" ASC=yes ) ORDER(NAME=~"examples.title~" ASC=yes ) " sort="window A " ) data("") column(band=detail id=1 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="9" y="8" height="64" width="645" format="[general]" html.valueishtml="0" name=group_id tag="Code example topic" visible="1" edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=2 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="663" y="8" height="64" width="485" format="[general]" html.valueishtml="0" name=description tag="A summary of what the code example does" visible="1" edit.limit=32000 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=3 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="1157" y="8" height="64" width="480" format="[general]" html.valueishtml="0" name=title tag="Title of the example" visible="1" edit.limit=60 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="1646" y="8" height="64" width="873" format="[general]" html.valueishtml="0" name=window tag="Window that is opened when the example runs" visible="1" edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="2528" y="8" height="64" width="283" format="[general]" html.valueishtml="0" name=version tag="Version of PowerBuilder that the example pertains to" visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="2821" y="8" height="64" width="1751" format="[general]" html.valueishtml="0" name=technique tag="A technical summary of what the code example is showing" visible="1" edit.limit=32000 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=7 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="4581" y="8" height="64" width="215" format="[general]" html.valueishtml="0" name=new tag="Determines if the example is new for the current release of PowerBuilder" visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=8 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="4805" y="8" height="64" width="293" format="[general]" html.valueishtml="0" name=enhanced tag="Determines if the code example has been changed, or enhanced, for the current release" visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=9 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="5106" y="8" height="64" width="933" format="[general]" html.valueishtml="0" name=ostype tag="Determines what operating systems the example will run on" visible="1" edit.limit=40 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=10 alignment="0" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="6048" y="8" height="64" width="407" format="[general]" html.valueishtml="0" name=pbtype tag="Determines whether the example will run on desktop or enterprise" visible="1" edit.limit=17 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) column(band=detail id=11 alignment="1" tabsequence=32766 border="0" color="0~tif (mod(getrow() ,2 ) = 0,if ( mod ( second ( now( ) ) ,3) = 0 , rgb( 0,255,255 ) ,if ( mod ( second ( now( ) ) ,3) =1 , rgb( 0,255,0 ) ,rgb( 255,255,0 ) ) ), if ( mod ( second ( now( ) ) ,2) =1 , rgb( 0,0,128 ) ,RGB(220,20,60) ) )" x="6464" y="8" height="64" width="402" format="[General]" html.valueishtml="0" name=exhelp tag="Determine if the example has help associated with it in the Help File." visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="MS Sans Serif" font.height="-8" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" ) text(band=header alignment="2" text="group" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="5" y="4" height="60" width="649" html.valueishtml="0" name=t_2 visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="Window" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="1646" y="4" height="60" width="873" html.valueishtml="0" name=examples_window_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="Version" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="2528" y="4" height="60" width="283" html.valueishtml="0" name=examples_version_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="Technique" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="2821" y="4" height="60" width="1751" html.valueishtml="0" name=examples_technique_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="New" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="4581" y="4" height="60" width="215" html.valueishtml="0" name=examples_new_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="Enhanced" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="4805" y="4" height="60" width="293" html.valueishtml="0" name=examples_enhanced_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="Platform" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="5106" y="4" height="60" width="933" html.valueishtml="0" name=examples_ostype_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="Pbtype" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="6048" y="4" height="60" width="407" html.valueishtml="0" name=examples_pbtype_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="Example Help" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="6464" y="4" height="60" width="402" html.valueishtml="0" name=examples_exhelp_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="Title" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="1157" y="4" height="60" width="480" html.valueishtml="0" name=examples_title_t visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) text(band=header alignment="2" text="description" border="6" color="0~tif (mod(second(now()), 2) = 0, 536870912, rgb(255,0,0))" x="663" y="4" height="60" width="485" html.valueishtml="0" name=t_1 visible="1" font.face="MS Sans Serif" font.height="-8" font.weight="700" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="134217730" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="1" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" ) xhtmlgen() cssgen(sessionspecific="0" ) xmlgen(inline="0" ) xsltgen() jsgen() export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" ) export.xhtml() |
Find Projects On Github click here
Good Luck!