%HI_GetSelectedItem, %HI_SetSelectedItem functions
Function |
The function %HI_SetSelectedItem sets the item of the Windows control of
List box or Tree view types or
the displayer of Browser type as current (selected) one
(Control function). The function %HI_GetSelectedItem detects the index (from 1 ...) of the current (selected) item of the Windows control of List box or Tree view types or the displayer of Browser type. |
||||||||||
Declaration |
%HI_SetSelectedItem( INT in refId, INT in itemIdx, BOOL in bInCurrPage := @FALSE BOOL in bState := @TRUE ) INT %HI_GetSelectedItem( INT in refId, BOOL in bInCurrPage := @FALSE INT in iFromIdx := 0 ) |
||||||||||
Parameters |
|
||||||||||
Note |
If no item is selected, the function %HI_GetSelectedItem returns the value of 0. For displayer of Tree view type, the parameter itemIdx is the unique identifier of the item. If the function %HI_SetSelectedItem is called on some item in Tree which is out of displayed area, the scrollbars will adjust automatically to see the selected item. |
Pridať komentár