Example
Applies To
Common dialog.
Description
Sets the options for the Color dialog box.
Usage
[form.]CMDialog.Flags[ = flag ]
Remarks
The following constants are available for the Color dialog box:
Constant | Value | Description |
CC_FULLOPEN | &H2& | Causes the entire dialog box, including the portion that allows the user to create custom colors, to appear when the dialog box is created. Without this flag, the user must choose the Define Custom Colors command button to display this portion of the dialog box. |
CC_PREVENTFULLOPEN | &H4& | Disables the Define Custom Colors command button and prevents the user from defining custom colors. |
CC_RGBINIT | &H1& | Sets the initial color value for the dialog box. |
CC_SHOWHELP | &H8& | Causes the dialog box to display a Help button. |
These flags are defined in the file CONSTANT.TXT.
You can also define selected flags. Use the Const keyword in the declarations section of the startup form to define the flags you want to use.
You can set more than one flag for a dialog box using the Or operator. For example:
CMDialog1.Flags = &H10& Or &H200&
Adding the desired constant values produces the same results. The following is equivalent to the preceding example:
CMDialog1.Flags = &H210&
Data Type
Long