ILanerResultsBox.UserFormControl

Syntax

UserFormControl: IFormControl;

Description

The UserFormControl property returns parameters of the connected user form.

Example

Executing the example requires a form, a button named Button1 on the form, the LanerBox component, the LanerResultsBox component named LanerResultsBox1 and the UiErAnalyzer component used as a data source for LanerBox and LanerResultsBox. Workbook of the time series database must be loaded to UiErAnalyzer1. The repository should also contain a user form with the identifier USER_PANEL.

The example is executed on clicking the button.

Sub Button1OnClick(Sender:Object; Args: IMouseEventArgs);
Var
    UserPanel: IFormControl;
Begin
    LanerResultsBox1.ContainerVisible(LanerBoxContainerType.Chart) := True;
    LanerResultsBox1.UserFormReplacePanel := LanerBoxContainerType.Chart;
    LanerResultsBox1.UserForm := "USER_PANEL";
    UserPanel := LanerResultsBox1.UserFormControl;
    UserPanel.ShowHint := True;
End Sub Button1OnClick;

After executing the example a user form is connected to the LanerResultsBox component instead of the Chart panel. For example:

Tooltips are enabled for the user panel.

See also:

ILanerResultsBox