This information is for Vicon Shogun 1.7. For up-to-date help, see the latest Shogun documentation.

Vicon Shogun banner


Creates a tab user control on the user window specified by parentWindowID. A tab is a way to organize user controls.

Functional area

User Window

Command syntax


createTab parentWindowID [-hidden] [-pos integer array] [-form integer]


parentWindowIDintyesID of user window to place the control on.


NameFlag argumentsArgument typeExclusive toComments
hidden0The tab is hidden until changed by a user event.
pos1integer arrayA four-element int array representing a rectangle, which specifies the initial size/position of the form relative to the top left corner of the user window. The element order is Left, Top, Right, and Bottom. Default is a form 200 units high by 200 units wide.
form1integerControl ID of the form user control which will dynamically position this form.

Return value



// 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