Vicon Shogun banner

Description

Adds an additional tab to the already created tab controller

Functional area

User Window

Command syntax

Syntax

addTab userControlID "itemString"

Arguments

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

Flags

None

Return value

integer

Examples

// Create a Tab control and add two tabs 
int $windowId;
int $tabControl;
int $firstTab;
int $secondTab;

// First create a User Window to place the Control on
$windowId = `createWindow "MyWindow"`;

//create a tab control
$tabControl = `createTab $windowId`;

//add tabs$firstTab = `addTab $tabControl "First"`;
$secondTab = `addTab $tabControl "Second"`;

Additional information

Related commands