Porovnávané verzie
porovnané s
Kľúč
- Tento riadok sa pridal
- Riadok je odstránený.
- Formátovanie sa zmenilo.
%HI_SetBrowserItemImage, %HI_GetBrowserItemImage functions
Function
The function %HI_SetBrowserItemImage sets a bitmap to display for cell of Browser displayer. The bitmap is characterized by object of Bitmap type (control function).
The function %HI_GetBrowserItemImage gets back the identifier of bitmap (HOBJ) for the cell of Browser displayer.
The function %HI_GetBrowserItemImage gets back the identifier of bitmap (HOBJ) for the cell of Browser displayer.
Declaration
Blok kódu | ||||
---|---|---|---|---|
| ||||
%HI_SetBrowserItemImage( INT in refId, INT in row, INT in col, HBJ in refToBitmap ) HBJ %HI_GetBrowserItemImage( INT in refId, INT in row, INT in col ) |
Parameters
refId | Reference to displayer (reference variable). |
row | Row of the cell (from 1 to ...). |
col | Column of the cell (from 1 to ...). |
refToBitmap | Reference to object of Bitmap type. |
Note
If the parameter row = 0, the bitmap will be set/get for whole column col.
If the parameter col = 0, the bitmap will be set/get for whole row row.
If both row and col = 0, the bitmap will be set/get for whole displayer.
If the parameter col = 0, the bitmap will be set/get for whole row row.
If both row and col = 0, the bitmap will be set/get for whole displayer.
Note 2
To use this function it is necessary to enable the bitmap display (parameter Enable icons) in Browser displayer.
Example
Blok kódu | ||||
---|---|---|---|---|
| ||||
; setting of the bitmap for whole displayer %HI_SetBrowserItemImage(_browser, 0, 0, PIC.BMP\HBJ), 0, 0, OK.BMP\HBJ) ; setting of the bitmap for column No. 3 %HI_SetBrowserItemImage(_browser, 0, 3, PIC.BMP\HBJ), 0, 3, OK.BMP\HBJ) ; setting of the bitmap for cell [2,3] %HI_SetBrowserItemImage(_browser, 2, 3, PIC.BMP\HBJ) |