Returns or sets the options for the Color dialog box.
Object.ColorOptions [ = enColorOptions ]
The ColorOptions property syntax has the following parts:
Name |
Type |
Description |
Object |
ACommonDialog |
ACommonDialog object |
enColorOptions |
enumACommonDialogColorOptions |
An integer specifying the color options |
enumACommonDialogColorOptions can be one of the following:
Name |
Value |
Description |
acdlgColorOptionsRGBInit |
0x00000001 |
Causes the dialog box to use the color specified in the Color property as the initial color selection. |
acdlgColorOptionsFullOpen |
0x00000002 |
Causes the dialog box to display the additional controls that allow the user to create custom colors. If this flag is not set, the user must click the Define Custom Color button to display the custom color controls. |
acdlgColorOptionsPreventFullOpen |
0x00000004 |
Disables the Define Custom Colors button. |
More than one Color option may be selected with the use of an OR expression.
The following statement changes the ACommonDialog to Full Open:
cdlg1.ColorOptions=acdlgColorOptionsRGBInit OR acdlgColorOptionsFullOpen