Progress
Language Reference


RGB-VALUE Function

Interfaces
OS
SpeedScript
All
All
No

Returns an integer that represents a combination of a red, green, and blue color value. This function allows you to define an arbitrary color, expanding beyond those colors defined in the color table.

SYNTAX

RGB-VALUE ( redval , greenval , blueval ) 

redval, greenval, blueval

Identifies red, green, and blue color values which can be combined to define a unique color value.

EXAMPLE

The following code snippet shows how to set the background color of an ActiveX control.

DEFINE VARIABLE hdlControl AS COM-HANDLE. 
/* Complete code to get a handle to a control in a control-frame.*/ 
. 
. 
.
hdlControl:BackColor = RGB(128, 0, 256). 

For detailed information on programming ActiveX Controls, see the Progress External Program Interfaces manual.

NOTE

The RGB-VALUE Function is generally most useful when it is used with ActiveX Controls.

SEE ALSO

COLOR-TABLE System Handle


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095