Back

Tip 16. Special Colour Codes for Datawindow Expressions.

I found these colours by exporting a datawindow after setting text to the desired colour.
The values found change quite a bit, but they all seem to work when deployed.
If anyone knows why the values change I'd love to know.

I've also added the codes that other people have sent me.

Windows Background 1090519039 or
1085800447 or
1073741824 or
2^30
Datawindow Background Long(Describe("Datawindow.Color"))
Transparent 553648127
Button Face 80263581 or
67108864 or
2^26
Windows text 33554432 or
2^25
Application Work Space 272777794 or
268435456 or
2^28


Powerbuilder 6 has a PFC colour service and defines the following colour constants. I think we can take these as the official colour codes.

APPLICATION_WORKSPACE 268435456
BLACK RGB(0, 0, 0)
BLUE RGB(0, 0, 255)
BROWN RGB(128, 128, 0)
BUTTONFACE 78682240
CYAN RGB(0, 255, 255)
DARK_BLUE RGB(0, 0, 128)
DARK_CYAN RGB(0, 128, 128)
DARK_GRAY RGB(128, 128, 128)
DARK_GREEN RGB(0, 128, 0)
DARK_MAGENTA RGB(128, 0, 128)
DARK_RED RGB(128, 0, 0)
GREEN RGB(0, 255, 0)
LIGHT_GRAY RGB(192, 192, 192)
MAGENTA RGB(255, 0, 255)
RED RGB(255, 0, 0)
TRANSPARENT 553648127
WHITE RGB(255, 255, 255)
WINDOW_BACKGROUND 1087434968
WINDOW_TEXT 33554592
YELLOW RGB(255, 255, 0)

Added before 01 Jan 2000

Back