Deletes all the tabs that are associated with the specified userControlID
.
User Window
deleteAllTabItems userControlID |
Name | Type | Required | Comments |
---|---|---|---|
userControlId | int | yes | ID of user control to be deleted. |
None
void
// Create a Tab and add an 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 tabs deleteAllTabItems $mainTab; |