[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 colour to use in graphics and text

Declaration

Source position: dialogs.pp line 246

type TColorDialog = class(TCommonDialog) end;

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;

  

Create - constructor for TColorDialog: calls inherited Create, makes stringlist for colours and gets colour values

  destructor Destroy; override;

  

Destroy - destructor for TColorDialog: frees custom colours then calls inherited Destroy

published

  property Title: TTranslateString;

  

The Title or Caption to be shown at the top of the dialog box

  property Color: TColor; [rw]

  

Color the colour that is selected by the dialog (a value may have been pre-set and may be accepted, but a new value can be chosen)

  property CustomColors: TStrings; [rw]

  

CustomColors - a customised list of colours that can be used instead of the system-supplied list

Inheritance

TColorDialog

  

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

|

TCommonDialog

  

TCommonDialog : the base type from which other dialogs are derived

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

Description

Colour Dialog: presents a palette of colours to allow the user to select the required colour for text or graphics.
Call the Execute function to show the color dialog.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.