CdlPSDConstants enumeration
Options of the Page Setup dialog, combined with Or in the Flags property.
The enumeration is declared inside the CommonDialog class. Its members are used without a qualifier, or with the name of the enumeration. The values are those of the Windows PSD_ constants of the PAGESETUPDLG structure.
When the HookEvents property is True, the class adds the Windows flag that switches on its hook procedure (PSD_ENABLEPAGESETUPHOOK) and removes it from Flags again when the dialog closes, so it is not a member.
| Member | Value | Description |
|---|---|---|
| CdlPSDDefaultMinMargins | &H0 | The minimum margins are the ones the printer allows. The value is zero, so this is the behavior whenever CdlPSDMinMargins is not set. |
| CdlPSDMinMargins | &H1 | The dialog takes the minimum margins from PageLeftMinMargin, PageTopMinMargin, PageRightMinMargin and PageBottomMinMargin, and does not let the user enter smaller margins. The class does not update these properties when the dialog closes. |
| CdlPSDMargins | &H2 | The dialog opens with the margins in PageLeftMargin, PageTopMargin, PageRightMargin and PageBottomMargin. Without it the dialog starts with margins of one inch. |
| CdlPSDInThousandthsOfInches | &H4 | The margins are in thousandths of an inch. |
| CdlPSDInHundredthsOfMillimeters | &H8 | The margins are in hundredths of a millimeter. When neither this flag nor CdlPSDInThousandthsOfInches is set, the unit follows the measurement system of the user. |
| CdlPSDDisableMargins | &H10 | Disables the part of the dialog for the margins. |
| CdlPSDDisablePrinter | &H20 | Disables the Printer button. |
| CdlPSDNoWarning | &H80 | The dialog shows no warning when the computer has no default printer. |
| CdlPSDDisableOrientation | &H100 | Disables the part of the dialog for the orientation. |
| CdlPSDDisablePaper | &H200 | Disables the part of the dialog for the paper size and source. |
| CdlPSDReturnDefault | &H400 | The dialog does not appear. The printer properties receive the settings of the default printer. |
| CdlPSDHelpButton | &H800 | Shows a Help button. A click raises the Help event, but only when the dialog has an owner window. |
| CdlPSDDisablePagePainting | &H80000 | The dialog does not draw the contents of its sample page. |
| CdlPSDNoNetworkButton | &H200000 | Hides and disables the Network button. |
Used by
- CommonDialog class: Flags (for ShowPageSetup)
See Also
- Enumerations – all the enumerations of the package
- CommonDialog class