UserFormControl: IFormControl;
The UserFormControl property returns parameters of the connected user form.
Executing the example requires a form, a button with the Button1 name located on this form, the LanerBox component, 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. The repository should also contain a user form with the identifier USER_PANEL.
This 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 linked to the LanerResultsBox component instead of the Chart panel. For example:
Tooltips are enabled for the user panel.
See also: