/
findTabItem
findTabItem
Description
Get the index of the specified tab for further manipulation.
Functional area
User Window
Command syntax
Syntax
findTabItem userControlID "itemString"[-start integer] |
Arguments
Name | Type | Required | Comments |
---|---|---|---|
itemString | string | no | The name of the tab to be added |
userControlId | int | yes | ID of user window to place the control on. |
Flags
Name | Flag arguments | Argument type | Exclusive to | Comments |
---|---|---|---|---|
start | 1 | integer | — | Offset the index from which the command starts |
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 the main tab $mainTab = `createTab $windowId "Main" "Second" "Third"`; int $secondTab = `addTab $mainTab "Fourth"`; int $ThirdTab = `findTabItem $mainTab "Third"`; print $ThirdTab;
Additional information
Related commands
, multiple selections available,