%HI_GetForeColor, %HI_SetForeColor functions


Function
The function %HI_SetForeColor sets the fore part color of the graphic object (Control function).

The function %HI_GetForeColor detects the fore part color of the graphic object.
Declaration
%HI_SetForeColor(
   INT in refId, 
   INT in color
 )

 INT %HI_GetForeColor(
   INT in refId
 )

Parameters
refId Reference to graphic object (reference variable).
color RGB index of color.

Note
The functions use a color, that is expressed by RGB index. RGB index is a integer number, that express the color representation of the color components - red (R), green (G) and blue (B) in the result color.

The function %MakeRGB allows to form the color from individual color components.
Napíšte komentár