Previous Topic

Next Topic

Inhoudsopgave

Book Index

TColorDialog Component

TColorDialog

Description

Displays a modal color selection dialog.

Remarks

The TColorDialog component displays a Windows dialog box for selecting colors. The dialog does not appear at runtime until it is activated by a call to the Execute method. When the user selects a color and clicks OK, the dialog closes and the selected color is stored in the Color property.

TFontDialog Properties

Property Property Color: TColor (R/W)

Returns the selected color. When the user selects a color in the dialog box and clicks OK, the selected color becomes the value of the Color property. To make a default color of choice appear in the dialog when it opens, assign a value to Color in the Object Inspector or in program code, otherwise the default is clBlack.