RGB/Long Colour Chart
The following is a list of the standard windows colours, their RGB numbers and the RGB Value converted to its long value. The RGB function just returns this long value so you can make your programs run a bit faster by using the long value and not having to calculate the long from the RGB values each time the function runs.

PBPaste has a colour calculator window which allows you to mix colours or choose from one of the standard 16 colours and the special colours and the long value be pasted directly into PowerBuilder.

Colour Red Green Blue Long
Black 0 0 0 0
White 255 255 255 16777215
Gray 192 192 192 12632256
Dark Grey 128 128 128 8421504
Red 255 0 0 255
Dark Red 128 0 0 128
Green 0 255 0 65280
Dark Green 0 128 0 32768
Blue 0 0 255 16711680
Dark Blue 0 0 128 8388608
Magenta 255 0 255 16711935
Dark Magenta 128 0 128 8388736
Cyan 0 255 255 16776960
Dark Cyan 0 128 128 8421376
Yellow 255 255 0 65535
Brown 128 128 0 32896
Special Numbers
Button Face       79741120
Text       33554432
Background       1090519039
App. Workspace       276856960

The calculation is: (65536 * Blue) + (256 * Green) + (Red)

Back