Sub OnLanerChange(Sender: Object; Args: ILanerBoxChangeEventArgs);
Begin
//set of operators;
End Sub OnLanerCellChange;
Sender. Component that has generated the event.
Args. Event parameters.
The OnLanerChange event occurs when a workbook is changed.
It is possible to identify the workbook section that has been changed by using the Args parameter.
Executing the example requires the form, the LanerBox component named LanerBox1 on the form, and the UiErAnalyzer component used as a data source for LanerBox. The workbook of time series database should be loaded to UiErAnalyzer. The form also contains the Memo component with the Memo1 identifier.
This procedure should be assigned as a handler of the OnLanerChange event for LanerBox.
Sub LanerBox1OnLanerChange(Sender: Object; Args: IEventArgs);
Begin
Memo1.Lines.Add("Workbook is changed");
End Sub LanerBox1OnLanerChange;
When the workbook is changed, the Memo1 component displays appropriate message.
See also: