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

TCustomColorBox

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

TCustomColorBox - base class for TColorBox

Declaration

Source position: colorbox.pas line 45

type TCustomColorBox = class(TCustomComboBox) end;

protected

  function ColorRectWidthStored;

  procedure DrawItem(); override;

  

Draws an item, using the OnDrawItem handler if one is installed.

  procedure SetColorList;

  

SetColorList - specifies the list of colours to be presented in the drop-down

  procedure Loaded; override;

  procedure InitializeWnd; override;

  

Copies cached control properties to the just created widget.

  procedure DoAutoAdjustLayout(); override;

  procedure DoGetColors; virtual;

  

DoGetColors - perform the code for getting colours

  procedure CloseUp; override;

  function PickCustomColor; virtual;

  

PickCustomColor - if True, a custom colour is picked rather than one of the standard list

public

  constructor Create(); override;

  

Create - constructor for TCustomColorBox: calls inherited Create, sets style, default colours and colour list, ReadOnly and Selected properties

  property ColorRectWidth: Integer; [rws]

  property ColorRectOffset: Integer; [rw]

  property Style: TColorBoxStyle; [rw]

  

Appearance and behaviour of the ComboBox (static/drop-down, owner-draw...).

  property Colors []: TColor; [r]

  

Colors the colour specified by the Index

  property ColorNames []: string; [r]

  

ColorNames - the name of the specified (indexed) colour, stored as a string

  property Selected: TColor; [rw]

  

The colour that has been Selected from the ComboBox

  property DefaultColorColor: TColor; [rw]

  

DefaultColorColor - the default colour, expressed as a Color value

  property NoneColorColor: TColor; [rw]

  

NoneColorColor - the colour to be used when no selection has been made, or when None is selected, stored as a TColor

  property OnGetColors: TGetColorsEvent; [rw]

  

OnGetColors - event handler for the instruction to Get Colours

Inheritance

TCustomColorBox

  

TCustomColorBox - base class for TColorBox

|

TCustomComboBox

  

The base class for ComboBox components.

|

TWinControl

  

The base class for controls which can contain other (child) controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

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