ACTIVE TAB operator
The ACTIVE TAB
operator creates a property that checks if specified tab is active.
Syntax
ACTIVE TAB formName.componentSelector
Description
The ACTIVE TAB
operator creates a property that returns TRUE
if the specified tab is active on a form.
Parameters
-
formName
Form name. Composite ID.
-
componentSelector
Design component selector. The component must be a tab in the tab panel.
Examples
//Form with two tabs
FORM tabbedForm 'Tabbed form'
OBJECTS u = CustomUser
PROPERTIES(u) name
OBJECTS c = Chat
PROPERTIES(c) name
;
DESIGN tabbedForm {
NEW tabPane FIRST {
type = TABBED;
NEW contacts {
caption = 'Contacts';
MOVE BOX(u);
}
NEW recent {
caption = 'Recent';
MOVE BOX(c);
}
}
}
//If the 'Recent' tab is active
recentActive() = ACTIVE TAB tabbedForm.recent;