LanerBox.OnMoveAttribute

Syntax

Sub OnMoveAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);

Begin

//set of operators;

End Sub OnMoveAttribute;

Parameters

Sender. Component that has generated the event.

Args. Event parameters.

Description

The OnMoveAttribute event occurs when columns containing values of indicator attributes are moved in the workbook.

Comments

Parameters of this event cannot be changed. Args.Index returns index of the moved attribute.

Example

Executing the example requires a 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 OnMoveAttribute event 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 indicator attributes, the Memo1 component shows the number of the moved column.

See also:

LanerBox