%HI_SetBrowserFont, %HI_GetBrowserFont function


Function
The function %HI_SetBrowserFont sets the text font for the specified item of the displayer of the Browser type. Text font is defined by an object of Text font type (Control function).

The function %HI_GetBrowserFont gets the font (HOBJ) of the item of the displayer of the Browser type.

Declaration
%HI_SetBrowserFont(
   INT in refId, 
   INT in row, 
   INT in col, 
   HBJ in fnt
 )
 
 
 HBJ %HI_GetBrowserFont(
   INT in refId, 
   INT in row, 
   INT in col
 )
Parameters
refIdReference to the graphic object (reference variable).
rowItem row.
colItem column.
fntReference to object of the Text font type.
Note
If parameter row = 0, then it is set/detect a text style for all the cells in the col column.
If parameter col = 0, then it is set/detect a text style for all the cells in the row row.
If both parameters row and col = 0, then it is set/detect a text style for all the cells in the browser.
If both parameters row and col = -1, then it is set/detect a text style for the header and all the cells in the browser. Moreover, the height of the header and height of browser rows will fit the size of the set font.

Example
; setting the text font for the whole displayer
 %HI_SetBrowserFont(_browser, 0, 0, Text.STL\HBJ)
   
; setting the text font for the column 3
 %HI_SetBrowserFont(_browser, 0, 3, Text.STL\HBJ)
   
; setting the text font for the item [2,3]
 %HI_SetBrowserFont(_browser, 2, 3, Text.STL\HBJ)

Napíšte komentár