TabSheetBox.OnObjectActivate

Syntax

Sub OnObjectActivate(Sender: Object; Args: ITabObjectEventArgs);

Begin

//set of operators

End Sub OnObjectActivate;

Parameters

Sender - a parameter, indicating the component, in which the event has occurred.

Args - a parameter, which allows to define the object, for which the event has occurred.

Description

The OnObjectActivate event occurs when a table object is activated or deactivated.

Example

Executing the example requires this procedure is set as the OnObjectActivate event handler for the TabSheetBox component named TabSheetBox1.

Sub TabSheetBox1OnObjectActivate(Sender: Object; Args: ITabObjectEventArgs);

Var

s: String;

Begin

s := Args.Object.Id;

End Sub TabSheetBox1OnObjectActivate;

After executing the event the variable «s» will contain the identifier of the object, over which the action has been performed.

See also:

TabSheetBox