TabPageLoad

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean TabPageLoad( SalString sParentObject,
		     SalString sWindowVersion,
		     SalString sWindow,
		     SalString sTabTag,
		     SalString sTabTitle )

The TabPageLoad method registers a Form Window, Table Window or Dialog Box to dynamically be added inside a tab in another window.

Parameters

Name Description
SalString sParentObject The object name (e.g. frmTabbedWindow.picTabs) of the cQuickTabs object to which the tab containing the window shall be added.
SalString sWindowVersion If this parameter has a value, the window will be added to parent windows with an identical or unspecified version. If this parameter is not specified, the window will be added to all windows.
SalString  sWindow Name of the window that shall appear inside a tab in the parent object.
SalString sTabTag The tag that shall be used for the extra tab created. This tag is used to identify the tab.
SalString sTabTitle Title that shall be used for the extra tab added. This parameter should be a translatable constant.

Returns

Unused. Applications should ignore the return value.

Comments

This method is very useful when integrating the user interfaces for different modules. Using Var.Component.TabPageLoad in one module can cause one of it's own windows to appear inside a tab in a window belonging to another module.

Example

! Add extra tab to all parties
Call Component.TabPageLoad( 'frmParty.picTabs', strNULL,
    'frmMyPartyExtra', 'tabMyPart', TEXT_MyPartyExtra )
! Add extra tab to customers only
Call Component.TabPageLoad( 'frmParty.picTabs', 'PARTY_TYPE_CUSTOMER',
    'frmMyCustomerExtra', 'tabMyCust', TEXT_MyCustomerExtra )
Add C# code sample