Sub OnMoveAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);
Begin
//set of operators;
End Sub OnMoveAttribute;
Sender. Component that has generated the event.
Args. Event parameters.
The OnMoveAttribute event occurs when columns containing values of time series attributes are moved in the workbook.
Parameters of this event cannot be changed. Args.Index returns index of the moved attribute.
Executing the example requires the form, the LanerBox component with the LanerBox1 name located on this form, and the UiErAnalyzer component used as a data source for LanerBox. The workbook of time series database must be loaded to the UiErAnalyzer. The form also contains the Memo component with Memo1 identifier.
This procedure must be be set the OnMoveAttribute event handler for the LanerBox component.
Sub LanerBox1OnMoveAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);
Var
Col: Integer;
Begin
Col := Args.Index + 2;
Memo1.Lines.Clear;
Memo1.Lines.Add("Column No has been moved" + ColCount.ToString);
End Sub LanerBox1OnMoveAttribute;
After moving the columns containing values of the series attributes, the Memo1 component shows the number of the moved column.
See also: