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

published

  property Action;

  

The Action associated with this control.

  property Align;

  

Specifies the placement of the control inside its Parent.

  property AllowAllUp;

  

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

  property Anchors;

  

The set of anchor definitions for this control.

  property AutoSize;

  property BidiMode;

  property BorderSpacing;

  

Determines the inner and outer border spacing for this control.

  property Constraints;

  

The minimal and maximal Width and Height of this control.

  property Caption;

  

The text describing the control to the user.

  property Color;

  

The background color of the control.

  property Down;

  

The button has been set in the Down state

  property Enabled;

  

Determines whether the control reacts on mouse or keyboard input.

  property Flat;

  

Whether the button is to be displayed Flat or in relief

  property Font;

  

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

  property Glyph;

  

The Bitmap glyph to be used on this button

  property GroupIndex;

  

The Index within the group of speedbuttons

  property Layout;

  

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

  property Margin;

  

Margin - the space around glyph and caption

  property NumGlyphs;

  

The number of Glyphs available

  property Spacing;

  

Spacing between Glyph and Caption

  property Transparent;

  

Whether button is transparent

  property Visible;

  

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

  property OnClick;

  

Notification handler for mouse clicks.

  property OnDblClick;

  

Event Handler for double mouse clicks.

  property OnMouseDown;

  

Event handler for mouse button going down.

  property OnMouseEnter;

  

Event handler for mouse entering the area of the control.

  property OnMouseLeave;

  

Event handler for mouse leaving the area of the control.

  property OnMouseMove;

  

Event handler for mouse movement within the current control

  property OnMouseUp;

  

Event handler for mouse button going up.

  property OnPaint;

  

Supply your own OnPaint handler for painting the control.

  property OnResize;

  

Notification handler for a resize of the control.

  property OnChangeBounds;

  

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

  property ShowCaption;

  

Should caption be displayed?

  property ShowHint;

  

Enables the Hint display.

  property ParentBidiMode;

  property ParentFont;

  

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

  property ParentShowHint;

  

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

  property PopupMenu;

  

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

end;

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