Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

TabBar_AddTab

  • Last UpdatedJul 18, 2023
  • 1 minute read

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:

h:<menu handle>

<function>(<arguments>)

Return Value

The ID of the tab (opened item number)

TabBar_GetOpenItemsCount, TabBar_GetTabCount

See Also

Public Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in