GeneratedPaletteColors property (LEADDlgColor Control)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

COLORREF GeneratedPaletteColors [ L_UINT uIndex ]

Delphi Syntax

GeneratedPaletteColors [ uIndex: L_UINT ]: COLORREF

Overview

Refer to Using Imaging Common Dialogs.

Remarks

(Read Only) Gets the generated palette colors in the CustomizePalette dialog box. The generated palette is the palette displayed in the right pane when the dialog is closed.

Note that this property will be valid only if DLG_CUSTOMIZEPALETTE_GENERATE_PALETTE or DLG_CUSTOMIZEPALETTE_SHOW_APPLYPALETTEWHENEXIT is set in the DlgFlags property before calling the ShowCustomizePaletteDlg method, and the GeneratedPaletteColorsCount property is greater than 0 when the CustomizePalette dialog box closes.

See Also

Elements:

ShowCustomizePaletteDlg method, UserPaletteColors property, UserPaletteColorsCount property, GeneratedPaletteColorsCount property, ApplyPaletteWhenExit property.

Topics:

Imaging Common Dialogs: Properties, Methods, and Events