diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2010-04-15 19:00:43 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2010-04-15 19:00:43 +0200 |
commit | 377561431c9805cdbf75a864c8305c044410726b (patch) | |
tree | 0805288b6ed88d7e315aea4e1964edff671c4415 /src | |
parent | 6fd9c31d4f227caae96996838c08797bb78b7f89 (diff) | |
download | fpGUI-377561431c9805cdbf75a864c8305c044410726b.tar.xz |
FilenameEdit: exposed the ExtraHint property of the embedded Edit component.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/fpg_editbtn.pas | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/fpg_editbtn.pas b/src/gui/fpg_editbtn.pas index 785c6ecd..ad9940d6 100644 --- a/src/gui/fpg_editbtn.pas +++ b/src/gui/fpg_editbtn.pas @@ -40,6 +40,8 @@ type FFilter: TfpgString; FOnButtonClick: TNotifyEvent; FInitialDir: TfpgString; + function GetExtraHint: TfpgString; + procedure SetExtraHint(const AValue: TfpgString); procedure SetFilter(const AValue: TfpgString); procedure btnClick(Sender: TObject); procedure SetFileName(const AValue: TfpgString); @@ -50,6 +52,7 @@ type constructor Create(AOwner: TComponent); override; procedure SetPosition(aleft, atop, awidth, aheight: TfpgCoord); override; published + property ExtraHint: TfpgString read GetExtraHint write SetExtraHint; property FileName: TfpgString read GetFileName write SetFileName; property InitialDir: TfpgString read FInitialDir write FInitialDir; property Filter: TfpgString read FFilter write SetFilter; @@ -107,6 +110,16 @@ begin FFilter := AValue; end; +function TfpgFileNameEdit.GetExtraHint: TfpgString; +begin + Result := FEdit.ExtraHint; +end; + +procedure TfpgFileNameEdit.SetExtraHint(const AValue: TfpgString); +begin + FEdit.ExtraHint := AValue; +end; + procedure TfpgFileNameEdit.SetPosition(aleft, atop, awidth, aheight: TfpgCoord); begin inherited SetPosition(aleft, atop, awidth, aheight); |