System Projects Reference > Situational Awareness System Projects > Situational Awareness Include Project > TabBar_AddTab

TabBar_AddTab

Adds a new tab to a given tab control.

Syntax

TabBar_AddTab(INT nTabBarAN, INT bActivate, STRING sTabLabel, STRING sContent [, STRING sEquipmentContext [, STRING sEquipmentSecondaryContext [, STRING sIcon [, INT bCanClose [, INT bIsPinned [, STRING sOnActivateCommand]]]]]])

nTabBarAN

The AN of the tab bar to which the tab will be added.

bActivate

Activate the tab after adding it.

sTabLabel

Display label of the tab.

sContent

Page Name to display.

sEquipmentContext

Equipment to which the content belongs.The default value is "".

sEquipmentSecondaryContext

Secondary equipment to which the content belongs. The default value is "".

sIcon

Not used.

bCanClose

Indicates whether the tab can be closed by the operator. The default value is TRUE.

bIsPinned

Indicates whether the tab is pinned (TRUE) or unpinned (FALSE). The default value is FALSE.

sOnActivateCommand

Command to run after the tab is activated. This is an optional parameter.The default value is "", which means no command will be run. This parameter can take the following values:

Return Value

The ID of the tab (opened item number)

Related Functions

Published June 2018