[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 233

type TColorDialog = class(TCommonDialog)

  class procedure WSRegisterClass; override;

  

WSRegisterClass - Register this Class for the current Widget Set

protected

  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;

  

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

end;

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

  

TLCLComponent - base class for LCL components

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

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.