ShowColorDlg method (ILEADRasterDlgClr)

Visual Basic example

Visual C++ example

 

Syntax

short ShowColorDlg (long hWnd);

Overview

Refer to Using Imaging Common Dialogs

Remarks

Displays the Color Dialog box, which allows the user to pick a color.

The layout and action of the dialog depends on the flags set in the UIFlags property. Possible options are:

Value

Meaning

COLOR_SHOW_CONTEXTHELP

[0x00000001] dialog should contain a context sensitive help icon.

COLOR_SHOW_OLDCOLOR

[0x00000002] dialog should contain the Old color in a static control.

COLOR_SHOW_NEWCOLOR

[0x00000004] dialog should contain the New color in a static control.

COLOR_SHOW_NAME

[0x00000008] dialog should contain the name in a static control.

COLOR_COLORSPACE_SHOW_HUE

[0x00000010] dialog should contain the HSB-Hue Based color space

COLOR_COLORSPACE_SHOW_BRIGHTNESS

[0x00000020] dialog should contain the HSB-Brightness Based color space

COLOR_COLORSPACE_SHOW_WHEEL

[0x00000040] dialog should contain the HSB-Wheel Based color space.

COLOR_COLORSPACE_SHOW_RGB

[0x00000080] dialog should contain the RGB-3D Additive color space.

COLOR_COLORSPACE_SHOW_CMY

[0x00000100] dialog should contain the CMY-3D Subtractive color space.

COLOR_COLORSPACE_SHOW_CMYK

[0x00000200] dialog should contain the CMYK-3D Subtractive color space.

COLOR_COLORSPACE_SHOW_LAB

[0x00000400] dialog should contain the LAB- Device Independent color space.

COLOR_COLORMODEL_SHOW_RGB

[0x00000800] dialog should contain the RGB color values display.

COLOR_COLORMODEL_SHOW_HSB

[0x00001000] dialog should contain the HSB color values display.

COLOR_COLORMODEL_SHOW_HLS

[0x00002000] dialog should contain the HLS color values display.

COLOR_COLORMODEL_SHOW_CMY

[0x00004000] dialog should contain the CMY color values display.

COLOR_COLORMODEL_SHOW_CMYK

[0x00008000] dialog should contain the CMYK color values display.

COLOR_COLORMODEL_SHOW_LAB

[0x00010000] dialog should display the LAB color values display.

The following properties are associated with this dialog:

SelectedColor property

ColorSpace property

ColorModel property

UserPalette property

To include a Help button in the dialog, set the ShowHelpButton property to VARIANT_TRUE.

The Color dialog can be seen below:

image\Color.gif

See Also

Elements

SelectedColor property, ColorSpace property, ColorModel property, UserPalette property, ShowHelpButton property, EnableZoomToFit Property, UIFlags Property, EnableMethodErrors property