ControlPanelAllowed: Boolean;
The ControlPanelAllowed property determines whether the control panel is displayed.
The property is relevant if any controls are set and displayed in the displayed regular report.
Available values:
True. The control panel is displayed.
False. Default value. The control panel is not displayed.
Executing the example requires a form with the CheckBox component named CheckBox1 on it, the ReportBox component named ReportBox1 and the UiReport component, which is a data source for ReportBox1. Controls are created in the regular report, which is connected to UiReport.
The example is a handler of the OnChange event for the CheckBox1 component.
Sub CheckBox1OnChange(Sender: Object; Args: IEventArgs);
Begin
ReportBox1.ControlPanelAllowed := CheckBox1.Checked;
End Sub CheckBox1OnChange;
On selecting or deselecting checkbox, the control panel will be displayed or hidden.
See also: