[Overview][Constants][Types][Classes][Procedures and functions][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button.
Source position: editbtn.pas line 58
type TCustomEditButton = class(TCustomAbstractGroupedEdit) |
||
protected |
||
procedure ButtonClick; virtual; |
|
Performs actions needed when the button for the control is clicked. |
procedure BuddyClick; override; |
|
Performs a button click for the associated control. |
function GetEditorClassType; override; |
|
Gets the class type used to create a new edit control instance in the class. |
function GetBuddyClassType; override; |
|
Gets the class type used to create the associated button control for the class. |
class function GetControlClassDefaultSize; override; |
|
Gets the default size used for new instances of the class. |
function CalcButtonVisible; virtual; |
|
Indicates whether the Button for the control should be visible. |
function GetDefaultGlyphName; virtual; |
|
GetDefaultGlyphName finds the name of the default glyph used for the Button. |
procedure CalculatePreferredSize(); override; |
|
Calculates the preferred size for the control with optional space reserved by theme services. |
procedure CheckButtonVisible; |
|
Ensures the Button for the control is configured and its visibility is set. |
procedure LoadDefaultGlyph; |
|
Loads the default glyph displayed on the Button for the control. |
procedure GlyphChanged(); virtual; |
|
Performs action needed when the glyph assigned in Button has changed. |
property Button: TSpeedButton; [r] |
|
Button is the TSpeedButton that is attached to the grouped edit control. |
property ButtonCaption: TCaption; [rw] |
|
Contains the caption used for the Button on the grouped edit control. |
property ButtonCursor: TCursor; [rw] |
|
Cursor shape displayed when the mouse hovers over the Button in the control. |
property ButtonHint: TTranslateString; [rw] |
|
ButtonHint is 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 is the width for the TSpeedButton used in the grouped edit control. |
|
Edit is the TEbEdit control used to perform direct input for the value in the grouped edit control. |
|
property Flat: Boolean; [rw] |
|
Flat - if True, SpeedButton appears flat rather than three-dimensional. |
property FocusOnButtonClick: Boolean; [rw] |
|
Indicates if the focus is changed to the Edit control after the Button is clicked. |
|
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 Images: TCustomImageList; [rw] |
|
Contains the Images that can be displayed on the Button for the grouped edit control. |
property ImageIndex: TImageIndex; [rw] |
|
Ordinal position in Images for the bitmap displayed on the Button control. |
property ImageWidth: Integer; [rw] |
|
Specifies the width of the image displayed on the Button control. |
property Spacing: Integer; |
|
Specifies the number of pixels reserved between the Edit and Button controls when Button is visible. |
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 initializes some variables. |
destructor Destroy; override; |
|
Destructor for the class instance. |
end; |
|
TCustomEditButton - base class for TEditButton, an Edit Box with attached Speed Button. |
|
| | ||
|
Implements a grouped edit control. |
|
| | ||
|
The base class for windowed controls which paint themselves. |
|
| | ||
|
The base class for controls which can contain other (child) controls. |
|
| | ||
|
The base class for visible controls. |
|
| | ||
|
The base class for LCL components which have an associated widget. |
|
| | ||
TComponent |
||
? | ||
TObject |
TCustomEditButton is a TCustomAbstractGroupedEdit descendant which implements a composite control with both an Edit and a Button. It provides overridden methods which extend or re-implement those found in the ancestor class. Most of the properties in the class are declared as protected, and must be exposed as public or published properties in an ancestor class like TEditButton.
|
Edit is the TEbEdit control used to perform direct input for the value in the grouped edit control. |
|
|
Button is the TSpeedButton that is attached to the grouped edit control. |
|
|
OnButtonClick - event handler for a mouse click on the SpeedButton. |
|
|
Implements a grouped edit control with both an Edit and a Button. |
lazarus-ccr.sourceforge.net |