BGCOLOR Property
PLBCMP GUI Only
The BGCOLOR property defines the background color of an object. The property uses the following format:
BGCOLOR={value | color object}
Note the following:
BGCOLOR may be used in CREATE, SETPROP, or GETPROP statements.
The {color object} must have been previously created.
The {value} may specify the color as a BGR value or a Windows system color index. The {value} is a four (4) byte integer. When the high order byte contains a value of 0x0, the next three bytes (twenty-four bits) are interpreted as a BGR value. When the high order byte has a value of 0x80, the lower order byte is an index value into the Windows system colors. The Windows system colors are defined by the user using the control panel.
If the object is not currently ENABLED, the color change may not take effect based on the operating system behavior.
This property is ignored for IMAGELIST when using the PL/B Web Server.
Beginning in version 9.6, the FGCOLOR and BGCOLOR are supported for the COMBOBOX styles of 'edit' and 'simple' but not the 'list' style .
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |