Skip to main content

TdxPSPreviewDialogStyleInfo.CreatePreviewWindow Method

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

Declaration

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