Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Using colors with display formats – PB Docs 2019 – PowerBuilder Library

Using colors with display formats – PB Docs 2019

Using colors with
display formats

Applies to

Display formats

Description

You can define a color for each display format section by specifying
a color keyword before the format. The color keyword is the name of the
color, or a number that is the color’s RGB value, enclosed in square
brackets. For example:

The following table lists the named color keywords.

[BLACK]

[MAGENTA]

[BLUE]

[RED]

[CYAN]

[WHITE]

[GREEN]

[YELLOW]

The formula for combining primary color values into a number
is:

where the amount of each primary color is specified as a value from
0 to 255. For example, to specify cyan, substitute 255 for blue, 255 for
green, and 0 for red. The result is 16776960.

The following table lists the blue, green, and red values you can
use in the formula to specify other colors.

Blue

Green

Red

Number

Color

0

0

255

255

Red

0

255

0

65280

Green

0

128

255

32768

Dark Green

255

0

0

16711680

Blue

0

255

255

65535

Yellow

0

128

128

328896

Brown

255

255

0

16776960

Cyan

192

192

192

12632256

Light Gray


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x