Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 8 Next »

Description

Gets the index of the specified tab for further manipulation

Functional area

User Window

Command syntax

Syntax

getTabSelItem userControlID

Arguments

NameTypeRequiredComments
userControlIdintyesID 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

  • No labels