diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2010-04-15 20:54:20 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2010-04-15 20:54:20 +0200 |
commit | 2fec6c6948b18f1f1b87a1294dd43a0d1c1a961d (patch) | |
tree | 14a0989b493bb753ddadc69c46a57e8f4d6f3c0a /uidesigner | |
parent | 3f585af1f54f39d63153be9e37ac183bf0fc046a (diff) | |
download | fpGUI-2fec6c6948b18f1f1b87a1294dd43a0d1c1a961d.tar.xz |
UI Designer: registered TfpgDirectoryEdit in component palette.
Diffstat (limited to 'uidesigner')
-rw-r--r-- | uidesigner/vfdwidgets.pas | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/uidesigner/vfdwidgets.pas b/uidesigner/vfdwidgets.pas index be82bf25..7188aabb 100644 --- a/uidesigner/vfdwidgets.pas +++ b/uidesigner/vfdwidgets.pas @@ -285,6 +285,10 @@ begin sizeof(stdimg_vfd_editfilename), 0, 0); + fpgImages.AddMaskedBMP( + 'vfd.editdirectory', @stdimg_vfd_editdirectory, + sizeof(stdimg_vfd_editdirectory), + 0, 0); end; procedure AddWidgetPosProps(wgc: TVFDWidgetClass); @@ -725,13 +729,23 @@ begin wc := TVFDWidgetClass.Create(TfpgFileNameEdit); wc.NameBase := 'FilenameEdit'; wc.AddProperty('ExtraHint', TPropertyString, ''); - wc.AddProperty('FileName', TPropertyString, 'Initial starting directory of the dialog'); + wc.AddProperty('FileName', TPropertyString, 'Preset filename in edit component'); wc.AddProperty('InitialDir', TPropertyString, 'Initial starting directory of the dialog'); wc.AddProperty('Filter', TPropertyString, 'Filename filters used in the dialog'); wc.AddProperty('TabOrder', TPropertyInteger, 'The tab order'); wc.WidgetIconName := 'vfd.editfilename'; RegisterVFDWidget(wc); + // Directory Edit + wc := TVFDWidgetClass.Create(TfpgDirectoryEdit); + wc.NameBase := 'DirectoryEdit'; + wc.AddProperty('ExtraHint', TPropertyString, ''); + wc.AddProperty('Directory', TPropertyString, 'Preset directory name in edit component'); + wc.AddProperty('RootDirectory', TPropertyString, 'Initial starting directory of the dialog'); + wc.AddProperty('TabOrder', TPropertyInteger, 'The tab order'); + wc.WidgetIconName := 'vfd.editdirectory'; + RegisterVFDWidget(wc); + // Other - do not delete!!! this should be the last... wc := TVFDWidgetClass.Create(TOtherWidget); wc.NameBase := 'Custom'; |