LCL: add stored function for FilterEdit TextHint. Issue #28956

git-svn-id: trunk@50231 -
This commit is contained in:
ondrej 2015-11-05 12:38:05 +00:00
parent 1b015d1034
commit 6d5708e02c

View File

@ -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 := '';