Delete the tab associated with the specified userControlID
.
User Window
deleteTabItem userControlID itemIndex or "itemString" |
Name | Type | Required | Comments |
---|---|---|---|
itemString | string | or | The name of the specified tab |
itemIndex | int | or | The item index of the specified tab |
userControlId | int | yes | ID of user control to be deleted. |
None
boolean
// 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; |