IReportBox.ControlPanelAllowed

Syntax

ControlPanelAllowed: Boolean;

Description

The ControlPanelAllowed property determines whether the control panel is displayed.

Comments

The property is relevant if any controls are set and displayed in the displayed regular report.

Available values:

Example

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:

IReportBox