IWidget.Active

Syntax

Active: Boolean;

Description

The Active property determines whether the component is active.

Comments

Available values:

Example

Executing the example requires a form and the components on it:

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Pads: INavigationBarPadList;
    Pad: INavigationBarPad;
Begin
    //Navigation bar, which will display tabs
    TableWidget1.NavBar := NavigationBar1;
    //Source, to which settings are applied
    TableWidget1.Source := UiErAnalyzer1 As ITableSource;
    //Activate components
    UiErAnalyzer1.Active := True;
    TableWidget1.Active := True;
    //List of available tabs
    Pads := TableWidget1.Pads;
    For Each Pad In Pads Do
        If Pad.IsSystem Then
            Debug.WriteLine(Pad.SystemId);
        End If;
    End For;
End Sub Button1OnClick;

On clicking the button the TableWidget1 component is set up and connected. This component will connect and give access to the system tabs for setup of table of the repository object, which is connected in the UiErAnalyzer1 component. The list of available tabs is displayed in the development environment console.

See also:

IWidget