Unit 'Buttons' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#lcl]

TCustomSpeedButton

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

Declaration

Source position: buttons.pp line 322

type TCustomSpeedButton = class(TGraphicControl)

protected

  FState: TButtonState;

  

  class procedure WSRegisterClass; override;

  

  function ButtonGlyph;

  

  function GetNumGlyphs;

  

  procedure GlyphChanged(); virtual;

  

  function DialogChar(); override;

  

  procedure CalculatePreferredSize(); override;

  

  procedure MeasureDraw();

  

  procedure MouseEnter; override;

  

  procedure MouseLeave; override;

  

  procedure MouseDown(); override;

  

  procedure MouseMove(); override;

  

  procedure MouseUp(); override;

  

  procedure Notification(); override;

  

  procedure Paint; override;

  

  procedure PaintBackground(); virtual;

  

  procedure SetDown();

  

  procedure SetGroupIndex();

  

  procedure SetFlat();

  

  procedure SetMargin();

  

  procedure SetNumGlyphs();

  

  procedure SetSpacing();

  

  procedure RealSetText(); override;

  

  procedure UpdateState(); virtual;

  

  function GetDrawDetails; virtual;

  

  property MouseInControl: Boolean; [r]

  

  procedure ActionChange(); override;

  

  function GetActionLinkClass; override;

  

  class function GetControlClassDefaultSize; override;

  

  procedure Loaded; override;

  

  function GetGlyphSize(); virtual;

  

  function GetTextSize(); virtual;

  

  function DrawGlyph(); virtual;

  

public

  constructor Create(); override;

  

  destructor Destroy; override;

  

  function FindDownButton;

  

  procedure Click; override;

  

  procedure LoadGlyphFromResourceName();

  

  procedure LoadGlyphFromTyphonResource();

  

  property Alignment: TAlignment; [rw]

  

  property AllowAllUp: Boolean; [rw]

  

  property Color: TColor;

  

  property DisabledImageIndex: TImageIndex; [rw]

  

  property Down: Boolean; [rw]

  

  property Flat: Boolean; [rw]

  

  property Glyph: TBitmap; [rws]

  

  property GroupIndex: Integer; [rw]

  

  property HotImageIndex: TImageIndex; [rw]

  

  property Images: TCustomImageList; [rw]

  

  property ImageIndex: TImageIndex; [rw]

  

  property ImageWidth: Integer; [rw]

  

  property Layout: TButtonLayout; [rw]

  

  property Margin: Integer; [rw]

  

  property NumGlyphs: Integer; [rw]

  

  property PressedImageIndex: TImageIndex; [rw]

  

  property SelectedImageIndex: TImageIndex; [rw]

  

  property ShowAccelChar: Boolean; [rw]

  

  property ShowCaption: Boolean; [rw]

  

  property Spacing: Integer; [rw]

  

  property Transparent: Boolean; [rw]

  

end;

Inheritance

TCustomSpeedButton

  

|

TGraphicControl

  

TGraphicControl is the base class for all lightweight controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

|

TObject



CT Web help

CodeTyphon Studio