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 located on this form, the LanerResultsBox component with the LanerResultsBox1 name and the UiErAnalyzer component used as a data source for LanerBox and LanerResultsBox. Workbook of the time series database must be loaded to UiErAnalyzer1.

This procedure must be assigned as a handler of the OnCopyStatistics event for the LanerResultsBox component. This example is executed when data of the Summary Statistics tab of the Calculation Results panel are 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