SelectedColor property (LEADDlgColor Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

COLORREF SelectedColor

Delphi Syntax

SelectedColor: COLORREF

Overview

Refer to Using Imaging Common Dialogs.

Remarks

Gets or sets the selected color in the Color dialog box.

Set this property before calling the ShowColorDlg method to initialize the dialog. When the user selects a color in the displayed dialog, this property will be updated with that color

You can specify a COLORREF value, such as the return value of the Windows RGB macro.

See Also

Elements:

ShowColorDlg method, ColorSpace property, ColorModel property, UserPaletteColors property, UserPaletteColorsCount property

Topics:

Imaging Common Dialogs: Properties, Methods, and Events