%HI_SetBrowserForeColor, %HI_GetBrowserForeColor functions


Function
The function %HI_SetBrowserForeColor sets the text color of the displayer of Browser type (Control function).

The function %HI_GetBrowserForeColor gets the text color of the displayer of Browser type.

Declaration
%HI_SetBrowserForeColor(
   INT in refId, 
   INT in row, 
   INT in col, 
   INT in RGB,
  [INT in overrideType = 0]
 )
 
 
 INT %HI_GetBrowserForeColor(
   INT in refId, 
   INT in row, 
   INT in col
 ) 
Parameters
refIdReference to graphic object (reference variable).
rowItem row.
colItem column.
RGBRGB index of color.
overrideType

Allowed values for overrideType:

1 - the set color will be applied always

2 - the set color will be applied only if the cell is not colored by the display palette or status text

Note
To get the RGB index of a color use the function %MakeRGB.
The value of the parameter row (col) can be also 0. So there is set (detected) the color for defined row (column). If both row = 0 and col = 0, then the color is set (detected) for the whole displayer.
Example
; setting the text color for the whole displayer
 %HI_SetBrowserForeColor(_browser, 0, 0, _RGB)
  
 ; setting the text color for the column nr. 3
 %HI_SetBrowserForeColor(_browser, 0, 3, _RGB)
  
 ; setting the text color for the item [2,3]
 %HI_SetBrowserForeColor(_browser, 2, 3, _RGB)

0 komentárov

Nie ste prihlásený. Akékoľvek zmeny, ktoré vykonáte, sa označia ako anonymné. Ak už máte svoj účet, pravdepodobne sa budete chcieť prihlásiť .