Color codes

Here is the list of default colors of powerbuilder, given (R,G,B) and the combinated values.

Powerbuilder colors

So you may prefer to see it rendered in the original Datawindow ?

$PBExportHeader$dw_helper_color.srd
release 10;
datawindow(units=0 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 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 hidegrayline=no grid.lines=0 )
header(height=72 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=84 color="536870912" )
table(column=(type=char(40) updatewhereclause=no name=name dbname="name" initial="COLOR NAME" )
 column=(type=number updatewhereclause=no name=color dbname="color" initial="0" )
 column=(type=number updatewhereclause=no name=r dbname="r" initial="0" )
 column=(type=number updatewhereclause=no name=g dbname="g" initial="0" )
 column=(type=number updatewhereclause=no name=b dbname="b" initial="0" )
 )
data("BLACK", 0, 0, 0, 0,"WHITE", 16777215, 255, 255, 255,"RED", 255, 255, 0, 0,"FUCHSIA", 16711935, 255, 0, 255,"LIME", 65280, 0, 255, 0,"YELLOW", 65535, 255, 255, 0,"BLUE", 16711680, 0, 0, 255,"AQUA", 16776960, 0, 255, 255,"MAROON", 128, 128, 0, 0,"PURPLE", 8388736, 128, 0, 128,"GREEN", 32768, 0, 128, 0,"OLIVE", 32896, 128, 128, 0,"NAVY", 8388608, 0, 0, 128,"TEAL", 8421376, 0, 128, 128,"GRAY", 8421504, 128, 128, 128,"SILVER", 12632256, 192, 192, 192,"MINT", 12639424, 192, 220, 192,"SKY", 15780518, 166, 202, 240,"CREAM", 15793151, 255, 251, 240,"MEDIUM GRAY", 10789024, 160, 160, 164,"WINDOW BACKGROUND", 1073741824, 0, 0, 16384,"WINDOW TEXT", 33554432, 0, 0, 512,"APPLICATION WORKSPACE", 268435456, 0, 0, 4096,"BUTTON FACE", 67108864, 0, 0, 1024,"SCROLL BAR", 134217728, 0, 0, 2048,"DESKTOP", 134217729, 1, 0, 2048,"ACTIVE TITLE BAR", 134217730, 2, 0, 2048,"INATIVE TITLE BAR", 134217731, 3, 0, 2048,"MENU BAR", 134217732, 4, 0, 2048,"WINDOW FRAME", 134217734, 6, 0, 2048,"MENU TEXT", 134217735, 7, 0, 2048,"ACTIVE TITLE BAR TEXT", 134217737, 9, 0, 2048,"ACTIVE BORDER", 134217738, 10, 0, 2048,"INACTIVE BORDER", 134217739, 11, 0, 2048,"HIGHLIGHT", 134217741, 13, 0, 2048,"HIGHLIGHT TEXT", 134217742, 14, 0, 2048,"BUTTON SHADOW", 134217744, 16, 0, 2048,"DISABLED TEXT", 134217745, 17, 0, 2048,"BUTTON TEXT", 134217746, 18, 0, 2048,"INACTIVE TITLE BAR TEXT", 134217747, 19, 0, 2048,"BUTTON HIGHLIGHT", 134217748, 20, 0, 2048,"BUTTON DARK SHADOW", 134217749, 21, 0, 2048,"BUTTON LIGHT SHADOW", 134217750, 22, 0, 2048,"TOOLTIP TEXT", 134217751, 23, 0, 2048,"TOOLTIP", 134217752, 24, 0, 2048,"LINK", 134217856, 128, 0, 2048,"LINK HOVER", 134217857, 129, 0, 2048,"LINK ACTIVE", 134217858, 130, 0, 2048,"LINK VISITED", 134217859, 131, 0, 2048,"TRANSPARENT", 553648127, 255, 255, 8447,) 
text(band=header alignment="2" text="Name" border="6" color="33554432" x="9" y="8" height="56" width="626" html.valueishtml="0"  name=name_t visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="Color" border="6" color="33554432" x="645" y="8" height="56" width="366" html.valueishtml="0"  name=color_t visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="R" border="6" color="33554432" x="1019" y="8" height="56" width="183" html.valueishtml="0"  name=r_t visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="G" border="6" color="33554432" x="1211" y="8" height="56" width="183" html.valueishtml="0"  name=g_t visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
text(band=header alignment="2" text="B" border="6" color="33554432" x="1403" y="8" height="56" width="183" html.valueishtml="0"  name=b_t visible="1"  font.face="Arial" font.height="-8" font.weight="700"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=1 alignment="0" tabsequence=10 border="6" color="33554432" x="9" y="8" height="68" width="626" format="[general]" html.valueishtml="0"  name=name visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="0" background.color="536870912~tif( getrow() = currentrow(), rgb( 0, 255, 0), 1073741824 )" )
column(band=detail id=2 alignment="2" tabsequence=20 border="6" color="33554432" x="645" y="8" height="68" width="366" format="[general]" html.valueishtml="0"  name=color visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="0" background.color="536870912~tif( getrow() = currentrow(), rgb( 0, 255, 0), 1073741824 )" )
column(band=detail id=3 alignment="2" tabsequence=30 border="6" color="33554432" x="1019" y="8" height="68" width="183" format="[general]" html.valueishtml="0"  name=r visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="0" background.color="536870912~tif( getrow() = currentrow(), rgb( 0, 255, 0), 1073741824 )" )
column(band=detail id=4 alignment="2" tabsequence=40 border="6" color="33554432" x="1211" y="8" height="68" width="183" format="[general]" html.valueishtml="0"  name=g visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="0" background.color="536870912~tif( getrow() = currentrow(), rgb( 0, 255, 0), 1073741824 )" )
column(band=detail id=5 alignment="2" tabsequence=50 border="6" color="33554432" x="1403" y="8" height="68" width="183" format="[general]" html.valueishtml="0"  name=b visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="0" background.color="536870912~tif( getrow() = currentrow(), rgb( 0, 255, 0), 1073741824 )" )
ellipse(band=detail x="2030" y="4" height="76" width="96"  name=oval_1 visible="0" brush.hatch="6" brush.color="30932959" pen.style="0" pen.width="5" pen.color="0"  background.mode="1" background.color="536870912" )
rectangle(band=detail x="1618" y="8" height="68" width="402"  name=r_1 visible="1" brush.hatch="6" brush.color="0~tcolor" pen.style="0" pen.width="5" pen.color="0"  background.mode="0" background.color="0~t color " )
compute(band=detail alignment="2" expression="describe(~"oval_1.Brush.color~") /*+ ' - ' +describe(~"oval_1.background.color~")*/"border="0" color="0" x="1595" y="8" height="56" width="5" format="[General]" html.valueishtml="0"  name=compute_1 visible="0"  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
compute(band=detail alignment="2" expression="'R: ' + string( mod( number(compute_1) , 256 ), '000' ) +' - G: ' + string( truncate( mod(number(compute_1),256*256)/256 , 0 ),  '000' ) +' - B: ' + string( truncate(number(compute_1)/(256*256), 0 ) ,  '000' ) "border="0" color="0" x="1609" y="12" height="56" width="5" format="[General]" html.valueishtml="0"  name=compute_2 visible="0"  font.face="Arial" font.height="-8" font.weight="400"  font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="0" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
xhtmlgen() cssgen(sessionspecific="0" )
xmlgen()
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()

Attachments