Skip to main content
All docs
V26.1
  • TdxCustomReportControl.OnDesignerFormShow Event

    Allows you to customize Report Designer dialog form settings.

    Declaration

    property OnDesignerFormShow: TdxBackendFormNotifyEvent read; write;

    Remarks

    Handle OnDesignerFormShow and OnViewerFormShow events to customize Report Designer and Report Viewer dialogs when displayed. You can change caption, dimensions, position, and other settings as demonstrated in the following code example: Modify Report Designer Form Settings.

    Event Occurrence

    The ShowDesigner procedure raises the OnDesignerFormShow event.

    Event Parameters

    The following parameters are available within an OnDesignerFormShow event handler:

    ASender

    Provides access to the TdxReportControl component that raised the OnDesignerFormShow event.

    Tip

    Cast the returned object (TObject) to the TdxReportControl class to access all public API members.

    AForm
    Provides access to the Report Designer dialog form. You can use this parameter to customize any dialog form settings.

    Refer to the TdxBackendFormNotifyEvent procedural type description for detailed information on parameters accessible within an OnDesignerFormShow event handler.

    Code Example: Modify Report Designer Form Settings

    The following code example demonstrates an OnDesignerFormShow event handler that modifies caption, dimensions, and position of the Report Designer dialog when it is displayed:

    uses
      dxReport.Control;  // Declares the TdxReportControl class
    //...
    
    procedure TMyForm.dxReportControl1DesignerFormShow(ASender: TObject; AForm: TForm);
    begin
      AForm.Caption := 'My Report Designer';  // Changes the Report Designer form caption
      AForm.WindowState := wsNormal;             // Switches from maximized to the normal form state
      AForm.Position := poScreenCenter;          // Centers the dialog on the screen
      AForm.Width := 1200;                       // Specifies the dialog width
      AForm.Height := 800;                       // Specifies the dialog height
    end;
    
    See Also