/
getTabSelItem
getTabSelItem
Description
Gets the index of the specified tab for further manipulation
Functional area
User Window
Command syntax
Syntax
getTabSelItem userControlID |
Arguments
Name | Type | Required | Comments |
---|---|---|---|
userControlId | int | yes | ID of the control to be queried. |
Flags
None
Return value
integer
Examples
// Create a tab and add and additional tab to the main tab. int $windowId; int $mainTab; // First create a User Window to place the Control on $windowId = `createWindow "MyWindow"`; //create a main tab controller then add a second tab to the main tab $mainTab = `createTab $windowId "Main" "Second" "Third" -sel 2`; int $secondTab = `addTab $mainTab "Fourth"`; int $activeTab = `getTabSelItem $mainTab`; print $activeTab;
Additional information
Related commands
, multiple selections available,