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

TSpeedButton

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

A Button used to represent states (checked or not, etc)

Declaration

Source position: buttons.pp line 354

type TSpeedButton = class(TCustomSpeedButton) end;

published

  property Action: TBasicAction;

  

The Action associated with this control.

  property Align: TAlign;

  

Specifies the placement of the control inside its Parent.

  property AllowAllUp: Boolean;

  

Boolean flag to determine whether all buttons are allowed to be Up (default false)

  property Anchors: TAnchors;

  

The set of anchor definitions for this control.

  property AutoSize: Boolean;

  property BidiMode: TBiDiMode;

  property BorderSpacing: TControlBorderSpacing;

  

Determines the inner and outer border spacing for this control.

  property Constraints: TSizeConstraints;

  

The minimal and maximal Width and Height of this control.

  property Caption: TCaption;

  

The text describing the control to the user.

  property Color: TColor;

  

The background color of the control.

  property Down: Boolean;

  

The button has been set in the Down state

  property Enabled: Boolean;

  

Determines whether the control reacts on mouse or keyboard input.

  property Flat: Boolean;

  

Whether the button is to be displayed Flat or in relief

  property Font: TFont;

  

The font to be used for text display in this control.

  property Glyph: TBitmap;

  

The Bitmap glyph to be used on this button

  property GroupIndex: Integer;

  

The Index within the group of speedbuttons

  property Layout: TButtonLayout;

  

The button layout - Glyph at top, bottom, left or right

  property Margin: Integer;

  

Margin - the space around glyph and caption

  property NumGlyphs: Integer;

  

The number of Glyphs available

  property Spacing: Integer;

  

Spacing between Glyph and Caption

  property Transparent: Boolean;

  

Whether button is transparent

  property Visible: Boolean;

  

Allows to show or hide the control, and all of its children.

  property OnClick: TNotifyEvent;

  

Notification handler for mouse clicks.

  property OnDblClick: TNotifyEvent;

  

Event Handler for double mouse clicks.

  property OnMouseDown: TMouseEvent;

  

Event handler for mouse button going down.

  property OnMouseEnter: TNotifyEvent;

  

Event handler for mouse entering the area of the control.

  property OnMouseLeave: TNotifyEvent;

  

Event handler for mouse leaving the area of the control.

  property OnMouseMove: TMouseMoveEvent;

  

Event handler for mouse movement within the current control

  property OnMouseUp: TMouseEvent;

  

Event handler for mouse button going up.

  property OnMouseWheel: TMouseWheelEvent;

  property OnMouseWheelDown: TMouseWheelUpDownEvent;

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  property OnPaint: TNotifyEvent;

  

Supply your own OnPaint handler for painting the control.

  property OnResize: TNotifyEvent;

  

Notification handler for a resize of the control.

  property OnChangeBounds: TNotifyEvent;

  

Event handler for a change of the Bounds of the control.

  property ShowCaption: Boolean;

  

Should caption be displayed?

  property ShowHint: Boolean;

  

Enables the Hint display.

  property ParentBidiMode: Boolean;

  property ParentFont: Boolean;

  

If true, the Font of the control will be the same as the one from the Parent. Default is true.

  property ParentShowHint: Boolean;

  

If true, the value of ShowHint for the control will be the same as the one from the Parent. Default is true.

  property PopupMenu: TPopupMenu;

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control

Inheritance

TSpeedButton

  

A Button used to represent states (checked or not, etc)

|

TCustomSpeedButton

  

The ancestor class for TSpeedButton

|

TGraphicControl

  

TGraphicControl is the base class for all lightweight controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components associated with widgets.

|

TComponent

?

TObject

Description

The Speed Button is designed to automate a process when it is selected. An user pushes a button to start an action or set a mode.
When a user clicks on a SpeedButton focus is not shifted; a Speed Button never gets focus. The button may carry an descriptive glyph, and has a state (checked or not, etc)

See also

HowToUseStdCtrls

  

How to use StdCtrls, ComCtrls or ExtCtrls

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