Example-VB | Example-VC++ |
Returns or sets initialization flags for the File (Open or Save As) dialog box or the Print dialog box. These dialog boxes are created by the ShowFileDialog and ShowPrintDialog methods.
Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
Ö | Imaging for Windows 95 and 98 |
Ö | Imaging for Windows NT 4.0 |
Image Admin control
object.Flags[=value]
Long
Values for ShowFileDialog
Value | Description |
&H400& | Indicates that the extension of the returned file name is different from the extension specified by the DefaultExt property. This flag is not set if the DefaultExt property is empty, if the extensions match, or if the file has no extension. This flag value can be checked upon returning from the dialog box. |
&H4& | Hides the Read-Only check box |
&H8& | Forces the dialog box to set the current directory to what it was when the dialog box was invoked |
&H8000& | Specifies that the returned file will not have the Read-Only attribute set and will not be in a write-protected directory |
&H100& | Specifies that the common dialog box allows invalid characters in the returned file name |
&H1& | Causes the Read Only check box to be initially checked when the dialog box is created. This flag also indicates the state of the Read Only check box when the dialog box is closed. |
&H10& | Causes the dialog box to display the Help button. If this option is specified, the parameter hParentWnd in the ShowFileDialog method must be set to null. |
&H40& | Causes the dialog box to display the preview options and the Find button |
Values for ShowPrintDialog
Value | Description |
&H80000& | Disables the Print to File check box |
&H100000& | The Print to File check box is not displayed |
&H80& | Prevents a warning message from being displayed when there is no default printer |
&H4& | Disables the Selection button |
The flags are bitwise and can be OR’d together.
The Help button in the dialog box is not shown unless a Help file is specified by the HelpFile property.