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

TColorButton

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

Colour Button

Declaration

Source position: dialogs.pp line 245

type TColorButton = class(TCustomSpeedButton)

protected

  procedure Click; override;

  

  procedure ShowColorDialog; virtual;

  

  function GetGlyphSize(); override;

  

  function DrawGlyph(); override;

  

  function GetControlClassDefaultSize; override;

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

published

  property Action;

  

  property Align;

  

  property Anchors;

  

  property AllowAllUp;

  

  property BorderSpacing;

  

  property BorderWidth: Integer; [rw]

  

  property ButtonColorAutoSize: Boolean; [rws]

  

  property ButtonColorSize: Integer; [rw]

  

  property ButtonColor: TColor; [rw]

  

  property ColorDialog: TColorDialog; [rw]

  

  property Constraints;

  

  property Caption;

  

  property Color;

  

  property Down;

  

  property Enabled;

  

  property Flat;

  

  property Font;

  

  property GroupIndex;

  property Hint;

  

  property Layout;

  

  property Margin;

  

  property Spacing;

  

  property Transparent;

  

  property Visible;

  

  property OnClick;

  

  property OnColorChanged: TNotifyEvent; [rw]

  

  property OnDblClick;

  

  property OnMouseDown;

  

  property OnMouseMove;

  

  property OnMouseUp;

  

  property OnPaint;

  

  property OnResize;

  

  property OnChangeBounds;

  

  property ShowHint;

  

  property ParentFont;

  

  property ParentShowHint;

  

  property PopupMenu;

  

end;

Inheritance

TColorButton

  

Colour Button

|

TCustomSpeedButton

  

The ancestor class for TSpeedButton

|

TGraphicControl

?

TObject

Description

Colour Button: Pressing this button causes the Colour Dialog to be presented, allowing a choice of colour for text or graphics.

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