Vicon Shogun banner

Description

Delete the tab associated with the specified userControlID.

Functional area

User Window

Command syntax

Syntax

deleteTabItem userControlID itemIndex or "itemString"

Arguments

NameTypeRequiredComments
itemStringstringorThe name of the specified tab
itemIndexintorThe item index of the specified tab
userControlIdintyesID of user control to be deleted.

Flags

None

Return value

boolean

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" `;
int $secondTab = `addTab $mainTab "Second"`;

// delete the second tab
deleteTabItem $mainTab 1;

Additional information

Related commands