summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-04-15 19:00:43 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-04-15 19:00:43 +0200
commit377561431c9805cdbf75a864c8305c044410726b (patch)
tree0805288b6ed88d7e315aea4e1964edff671c4415 /src
parent6fd9c31d4f227caae96996838c08797bb78b7f89 (diff)
downloadfpGUI-377561431c9805cdbf75a864c8305c044410726b.tar.xz
FilenameEdit: exposed the ExtraHint property of the embedded Edit component.
Diffstat (limited to 'src')
-rw-r--r--src/gui/fpg_editbtn.pas13
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);