%HI_GetActiveTab function


Function
The function detects the active tab of the Windows control of Tab control type.
Declaration
INT %HI_GetActiveTab(
   INT in _TAB_refId
 )

Parameters
_TAB_refId Reference (reference variable) of Windows control of Tab control type.

Note
The function retrieves the reference variable of the selected tab. If the tab has no reference variable, the return value is 0.
Example
The procedure HideActiveTab hides the active tab:
 
; _TAB_CONTROL - reference variable of Windows control of "Tab control" type

 PROCEDURE HideActiveTab
 INT _ActiveTabRefId
 _ActiveTabRefId  := %HI_GetActiveTab(_TAB_CONTROL)
  %HI_SetVisible(_ActiveTabRefId, @FALSE)
 END HideActiveTab

Napíšte komentár