Sub OnObjectActivate(Sender: Object; Args: ITabObjectEventArgs);
Begin
//set of operators
End Sub OnObjectActivate;
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.
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: