mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 23:57:11 +02:00
LCL: add stored function for FilterEdit TextHint. Issue #28956
git-svn-id: trunk@50231 -
This commit is contained in:
parent
1b015d1034
commit
6d5708e02c
@ -435,6 +435,7 @@ type
|
||||
procedure SetUseFormActivate(AValue: Boolean);
|
||||
procedure FormActivate(Sender: TObject); // Connects to owning form.
|
||||
procedure FormDeactivate(Sender: TObject);
|
||||
function IsTextHintStored: Boolean;
|
||||
protected
|
||||
fNeedUpdate: Boolean;
|
||||
fIsFirstUpdate: Boolean;
|
||||
@ -535,7 +536,7 @@ type
|
||||
property OnStartDrag;
|
||||
property OnUTF8KeyPress;
|
||||
property Text;
|
||||
property TextHint;
|
||||
property TextHint stored IsTextHintStored;
|
||||
property TextHintFontColor;
|
||||
property TextHintFontStyle;
|
||||
end;
|
||||
@ -2233,6 +2234,11 @@ begin
|
||||
IdleConnected:=true;
|
||||
end;
|
||||
|
||||
function TCustomControlFilterEdit.IsTextHintStored: Boolean;
|
||||
begin
|
||||
Result := TextHint <> rsFilter;
|
||||
end;
|
||||
|
||||
procedure TCustomControlFilterEdit.ResetFilter;
|
||||
begin
|
||||
Filter := '';
|
||||
|
Loading…
Reference in New Issue
Block a user