Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : SET-RGB-VALUE( ) method
 

SET-RGB-VALUE( ) method

(Graphical interfaces only)
Specifies a combination of the red, green, and blue values of an entry in the color table. You cannot change a static color with this method. Before changing the color, you must make the color dynamic using the SET-DYNAMIC( ) method. For an example, see r-colhan.p in the COLOR-TABLE system handle entry.
Return type: LOGICAL
Applies to: COLOR-TABLE system handle

Syntax

SET-RGB-VALUE ( index , integer-expression )
index
An integer expression that specifies an entry in the color table.
integer-expression
An integer expression that specifies the RGB component of an entry in the color table. You can obtain this value from the color property of an ActiveX control, by using the RGB-VALUE function, or by using the GET-RGB-VALUE( ) method.
If the operation is successful, the method returns TRUE.