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

TCustomEditButton

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

TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button

Declaration

Source position: editbtn.pas line 53

type TCustomEditButton = class(TCustomAbstractGroupedEdit) end;

protected

  procedure ButtonClick; virtual;

  procedure BuddyClick; override;

  function GetEditorClassType; override;

  function GetBuddyClassType; override;

  class function GetControlClassDefaultSize; override;

  function CalcButtonVisible; virtual;

  function GetDefaultGlyph; virtual;

  

GetDefaultGlyph - find the default glyph for the SpeedButton

  function GetDefaultGlyphName; virtual;

  

GetDefaultGlyphName - find the name for the default glyph for the SpeedButton

  procedure CalculatePreferredSize(); override;

  procedure CheckButtonVisible;

  

  property Button: TSpeedButton; [r]

  

Button - the SpeedButton that is attached to the Edit Box

  property ButtonCaption: TCaption; [rw]

  property ButtonCursor: TCursor; [rw]

  property ButtonHint: TTranslateString; [rw]

  

ButtonHint - the hint that pops up when the mouse hovers over the button

  property ButtonOnlyWhenFocused: Boolean; [rw]

  

ButtonOnlyWhenFocused - if True, the SpeedButton only appears when focus is given to the EditButton control

  property ButtonWidth: Integer; [rw]

  

ButtonWidth - the width of the SpeedButton attached to the Edit Box

  property Edit: TEbEdit; [r]

  property Flat: Boolean; [rw]

  

Flat - if True, SpeedButton appears flat rather than three-dimensional

  property FocusOnButtonClick: Boolean; [rw]

  property Glyph: TBitmap; [rws]

  

Glyph - the small graphic image on the SpeedButton, which ought to indicate its function

  property NumGlyphs: Integer; [rw]

  

NumGlyphs - the number of available glyphs

  property Spacing: Integer;

  property OnButtonClick: TNotifyEvent; [rw]

  

OnButtonClick - event handler for a mouse click on the SpeedButton

public

  constructor Create(); override;

  

Create - constructor for TCustomEditButton: calls inherited Create then sets some defaults and initialises some variables

  destructor Destroy; override;

Inheritance

TCustomEditButton

  

TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button

|

TCustomAbstractGroupedEdit

  

|

TCustomControl

  

The base class for windowed controls which paint themselves.

|

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.