/
selectTabItem
selectTabItem
Description
Activates the specified tab specifically by index, starting with 0.
Functional area
User Window
Command syntax
Syntax
selectTabItem userControlID index |
Arguments
Name | Type | Required | Comments |
---|---|---|---|
index | int | yes | The index of the tab you want to make active |
userControlId | int | yes | ID of User Window to place the control on. |
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 and third tab $mainTab = `createTab $windowId "Main" "Second" "Third"`; // make the third tab active selectTabItem $mainTab 2;
Additional information
Related commands
, multiple selections available,
Related content
getTabItem
getTabItem
More like this
getTabSelItem
getTabSelItem
More like this
findTabItem
findTabItem
More like this
setTabHandler
setTabHandler
More like this
addTab
More like this
addTab
More like this