Sub OnScaleChange(Sender: Object; Args: ITabScaleEventArgs);
Begin
//set of operators
End Sub OnScaleChange;
Sender - a parameter, indicating the component, in which the event has occurred.
Args - a parameter, which allows to define additional event parameters.
The OnScaleChange event occurs when the table scale changes.
Executing the example requires this procedure is set as the OnCellChange event handler for the TabSheetBox component with the TabSheetBox1 identifier.
Sub TabSheetBox1OnScaleChange(Sender: Object; Args: ITabScaleEventArgs);
Var
d: Double;
Begin
d:=Args.Scale;
End Sub TabSheetBox1OnScaleChange;
After executing the event the variable «d» will contain the new table scale.
See also: