mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 11:39:19 +02:00
EditBtn: implement Validateedit and Reset methods.
git-svn-id: trunk@44680 -
This commit is contained in:
parent
be1a5bc92c
commit
9597a13137
@ -198,6 +198,7 @@ type
|
||||
|
||||
|
||||
procedure Loaded; override;
|
||||
procedure Reset; virtual;
|
||||
procedure SetAutoSize(AValue: Boolean); override;
|
||||
procedure SetColor(AValue: TColor); override;
|
||||
procedure SetCursor(AValue: TCursor); override;
|
||||
@ -249,6 +250,7 @@ type
|
||||
procedure SelectAll;
|
||||
procedure SetFocus; override;
|
||||
procedure Undo; virtual;
|
||||
procedure ValidateEdit; virtual;
|
||||
|
||||
property Autosize default True;
|
||||
property Alignment: TAlignment read GetAlignment write SetAlignment default taLeftJustify;
|
||||
@ -1444,6 +1446,11 @@ begin
|
||||
CheckButtonVisible;
|
||||
end;
|
||||
|
||||
procedure TCustomEditButton.Reset;
|
||||
begin
|
||||
FEdit.Reset;
|
||||
end;
|
||||
|
||||
procedure TCustomEditButton.SetGlyph(AValue: TBitmap);
|
||||
begin
|
||||
FButton.Glyph := AValue;
|
||||
@ -1588,6 +1595,11 @@ begin
|
||||
FEdit.Undo;
|
||||
end;
|
||||
|
||||
procedure TCustomEditButton.ValidateEdit;
|
||||
begin
|
||||
FEdit.ValidateEdit;
|
||||
end;
|
||||
|
||||
{ TCustomControlFilterEdit }
|
||||
|
||||
constructor TCustomControlFilterEdit.Create(AOwner: TComponent);
|
||||
|
Loading…
Reference in New Issue
Block a user