Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxPageSetupDialog.OnCustomDrawPreview Event

In This Article

Occurs when the “Margins“ tab of the Page Setup dialog window is displayed.

#Declaration

Delphi
property OnCustomDrawPreview: TdxCustomDrawPreviewEvent read; write;

#Remarks

Write the OnCustomDrawPreview event handler to draw a specific preview within the “Preview“ section of the “Margins“ tab. Use this event to display your own preview picture for your report. The ACanvas parameter determines the drawing canvas. The APageRect, AContentRect, AHeaderRect, and AFooterRect parameters specify the bound rectangle for page, content, header and footer drawing.

Keep in mind that the OnCustomDrawPreview event handler must be a full drawing procedure.

See Also