TabSheetBox.OnObjectsSelectionChanged

Fore Syntax

Sub OnObjectsSelectionChanged(Sender: Object; Args: ITabSheetEventArgs);

Begin

//set of operators;

End Sub OnObjectsSelectionChanged;

Fore.NET Syntax

Sub OnObjectsSelectionChanged(sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabSheetEventArgs);

Begin

//set of operators;

End Sub;

Parameters

Sender. Parameter returning the component that has generated the event

Args. Parameter allowing to determine event parameters.

Description

The OnObjectsSelectionChanged event occurs on selecting the object in the table.

Comments

On object activating or deactivating the TabSheetBox.OnObjectActivate event occurs.

Fore Example

Executing the example requires a form containing the TabSheetBox component with the TabSheetBox1 identifier and the UiTabSheet component with the UiTabSheet1 identifier. Set the UiTabSheet1 component as a data source for the TabSheetBox1 component.

Sub TabSheetBox1OnObjectsSelectionChanged(Sender: Object; Args: ITabSheetEventArgs);
Begin
    Debug.WriteLine("The object in the table is selected: " + Args.TabSheet.Name);
End Sub TabSheetBox1OnObjectsSelectionChanged;

As a result of executing the example, on selecting the object from the table, the console displays the message about object selection.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of the Fore components.

Private Sub tabSheetBoxNet1_OnObjectsSelectionChanged(Sender: System.Object; Args: Prognoz.Platform.Interop.Tab.TabSheetEventArgs);
Begin
    System.Diagnostics.Debug.WriteLine("The object in the table is selected: " + Args.TabSheet.Name);
End Sub;

See also:

TabSheetBox