Orientation: PrxControlPanelOrientation;
The Orientation property determines positions of controls of the ReportControlPanel development environment component.
Executing the example requires a form, a button named Button1 on this form, the TabSheetBox component named TabSheetBox1, the ReportControlPanel named ReportControlPanel1 and the UiReport component named UiReport1. The repository must contain a regular report with the POK_REG identifier.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
MB: IMetabase;
Begin
MB := MetabaseClass.Active;
UiReport1.Report := MB.ItemById("POK_REG").Bind As IPrxReport;
TabSheetBox1.Source := UiReport1 As ITabSheetSource;
ReportControlPanel1.Object := UiReport1;
UiReport1.Active := True;
ReportControlPanel1.Orientation := PrxControlPanelOrientation.Horizontal;
End Sub Button1OnClick;
After executing the example controls on the ReportControlPanel development environment component are positioned horizontally:
See also: