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

TCustomColorListBox

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

TCustomColorListBox - base class for TColorListBox

Declaration

Source position: colorbox.pas line 165

type TCustomColorListBox = class(TCustomListBox) end;

protected

  function ColorRectWidthStored;

  procedure DrawItem(); override;

  

Paints an item in owner-draw mode.

  procedure SetColorList;

  

SetColorList - specifies the list of colours

  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 the colours

  procedure DoSelectionChange(); override;

  

Invokes the OnSelectionChange handler.

  function PickCustomColor; virtual;

  

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

public

  constructor Create(); override;

  

Create - constructor for TCustomColorListBox: calls inherited Create, initialises style, default colours and sets colour list

  property ColorRectWidth: Integer; [rws]

  property ColorRectOffset: Integer; [rw]

  property Style: TColorBoxStyle; [rw]

  

Appearance of the ListBox - normal, owner-draw fixed, or owner-draw variable.

  property Colors []: TColor; [rw]

  

The Colors specified by Index

  property ColorNames []: string; [r]

  

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

  property Selected: TColor; [rw]

  

Get or set the Selected state of an item.

  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: TLBGetColorsEvent; [rw]

  

OnGetColors - event handler for the instruction to Get Colours

Inheritance

TCustomColorListBox

  

TCustomColorListBox - base class for TColorListBox

|

TCustomListBox

  

The base class for TListBox.

|

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.