TdxPSPreviewDialogStyleInfo.CreatePreviewWindow Method
In This Article
Creates a window that corresponds to the current Print Preview dialog style.
#Declaration
Delphi
class function CreatePreviewWindow: TdxPSCustomPreviewWindow; virtual;
#Returns
Type |
---|
Tdx |
#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 | Tdxfm |
Advanced | Tdxfm |
Ribbon, Ribbon2010, Ribbon2013, Ribbon2016, Ribbon2016Tablet, and Ribbon2019 | Tdx |
Refer to the How to Implement and Register Custom Print Preview Dialogs topic, to learn how to override the CreatePreviewWindow function.
See Also