ColorOptions Property (ACommonDialog)

Returns or sets the options for the Color dialog box.

Syntax

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

Where

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.

Comments

More than one Color option may be selected with the use of an OR expression.

Example

The following statement changes the ACommonDialog to Full Open:

cdlg1.ColorOptions=acdlgColorOptionsRGBInit OR acdlgColorOptionsFullOpen

Applies to

ACommonDialog

See Also

Color, FontOptions, OpenOptions