CdlCCConstants enumeration

Options of the Color 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 CC_ constants of the CHOOSECOLOR structure.

When the HookEvents property is True, the class adds the Windows flag that switches on its hook procedure (CC_ENABLEHOOK) and removes it from Flags again when the dialog closes, so it is not a member.

Member Value Description
CdlCCRGBInit &H1 The dialog opens with the Color property as the selected color. Without this flag the dialog ignores Color when it opens.
CdlCCFullOpen &H2 The dialog opens with the part for defining custom colors already shown.
CdlCCPreventFullOpen &H4 Disables the Define Custom Colors button, so the user cannot open the part for custom colors.
CdlCCHelpButton &H8 Shows a Help button. A click raises the Help event, but only when the dialog has an owner window.
CdlCCSolidColor &H80 The set of basic colors shows only solid colors.
CdlCCAnyColor &H100 The set of basic colors shows all the colors that are available.

Used by

See Also