/
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

NameTypeRequiredComments
itemStringstringnoThe name of the tab to be added
userControlIdintyesID of user window to place the control on.

Flags

NameFlag argumentsArgument typeExclusive toComments
start1integerOffset 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