[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Dialogs' (#lcl)

TColorDialog

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TColorDialog - dialog for selecting a color to use in graphics and text.

Declaration

Source position: dialogs.pp line 272

type TColorDialog = class(TCommonDialog)

protected

  class procedure WSRegisterClass; override;

  

Registers this component class with the current WidgetSet.

  function DefaultTitle; override;

  

DefaultTitle returns the default title for a dialog.

public

  constructor Create(); override;

  

Constructor for the class instance.

  destructor Destroy; override;

  

Destructor for the class instance.

published

  property Title: TTranslateString;

  

The Title or Caption displayed in the title bar for the dialog.

  property Color: TColor; [rw]

  

Color selected by the user in the color dialog.

  property CustomColors: TStrings; [rw]

  

Defines the color names and values available in the color dialog.

end;

Inheritance

TColorDialog

  

TColorDialog - dialog for selecting a color to use in graphics and text.

|

TCommonDialog

  

The base type from which other dialogs are derived.

|

TLCLComponent

  

The base class for LCL components which have an associated widget.

|

TComponent

?

TObject

Description

TColorDialog presents a palette of colors to allow the user to select the required color for text or graphics.

Call the Execute method to display the color dialog.

See also

TCommonDialog

  

The base type from which other dialogs are derived.

TCommonDialog.Execute

  

Displays the dialog and captures the result.