Sub TabSheetBoxOnObjectActivate(Sender: Object; Args: ITabObjectEventArgs);
Begin
//set of operators
End Sub TabSheetBoxOnObjectActivate;
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.
The OnObjectActivate event occurs when a table object is activated or deactivated.
To execute the example, this procedure has to be assigned as an event handler to the event OnObjectActivate for the component TabSheetBox 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: