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

TdxPSPreviewDialogStyleInfo.CreatePreviewWindow Method

Creates a window that corresponds to the current Print Preview dialog style.

#Declaration

Delphi
class function CreatePreviewWindow: TdxPSCustomPreviewWindow; virtual;

#Returns

Type
TdxPSCustomPreviewWindow

#Remarks

When implementing a custom Print Preview dialog style, override this function in a TdxPSPreviewDialogStyleInfo descendant, to create a window for this dialog style. You can derive your window class from TdxPSCustomPreviewWindow or a class that corresponds to one of built-in Print Preview dialog styles.

Built-In Dialog Style Print Preview Window Class Name
Standard TdxfmStdPreview
Advanced TdxfmPreviewWdxBar
Ribbon, Ribbon2010, Ribbon2013, Ribbon2016, Ribbon2016Tablet, and Ribbon2019 TdxRibbonPrintPreviewForm

Refer to the How to Implement and Register Custom Print Preview Dialogs topic, to learn how to override the CreatePreviewWindow function.

See Also