/
createTab

createTab

Description

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

Syntax

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

Arguments

NameTypeRequiredComments
parentWindowIDintyesID of user window to place the control on.

Flags

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

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

Related content


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks