ILanerResultsBoxCopyEventArgs.Handled

Syntax

Handled: Boolean;

Description

The Handled property determines whether right of making copies is transferred to the developers on the application level.

Comments

True: Right of copying is transferred to application level, no data are copied to the clipboard on the system level; False: Data are copied to the clipboard on the system level. Default value is False.

Example

Executing the example requires a form, the LanerBox component on the form, the LanerResultsBox component named LanerResultsBox1 and the UiErAnalyzer component used as a data source for LanerBox and LanerResultsBox. The workbook of the time series database should be loaded to UiErAnalyzer1.

The procedure should be assigned as a handler of the OnCopyStatistics event for the LanerResultsBox component. The example is executed when data of the Summary Statistics tab of the Calculation Results panel is copied.

Sub LanerResultsBox1OnCopyStatistics(Sender: Object; Args: ILanerResultsBoxCopyEventArgs);
Var
    LanerResultsBox: ILanerResultsBox;
    Results: ILanerResultsBoxResults;
    Statistics: ILanerResultsBoxStatistics;
    i: Integer;
Begin
    Args.Handled := True;
    LanerResultsBox := Sender As ILanerResultsBox;
    Results := LanerResultsBox.Results;
    Statistics := Results.Statistics;
    For i := 0 To Statistics.Count - 1 Do
        If Statistics.Type(i) = LanerBoxStatisticType.Min Then
            Debug.WriteLine(Statistics.Name(i) + "       " + Statistics.Value(i));
        End If;
    End For;
End Sub LanerResultsBox1OnCopyStatistics;

After copying data from the Summary Statistics tab the clipboard is empty and the console window shows value of the Minimum characteristics.

See also:

ILanerResultsBoxCopyEventArgs