summaryrefslogtreecommitdiff
path: root/uidesigner/vfdwidgets.pas
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2010-04-16 13:07:27 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2010-04-16 13:07:27 +0200
commit823367c10aa6202fcc68f338bacd6e46c73d4b13 (patch)
tree9eb2995ad89b17edd805b5835e5df9a16abd4a84 /uidesigner/vfdwidgets.pas
parentf898ab93f7a561e02654a88c77c1ac185fd40622 (diff)
downloadfpGUI-823367c10aa6202fcc68f338bacd6e46c73d4b13.tar.xz
UI Designer: Registered the new TfpgFontEdit in component palette.
Diffstat (limited to 'uidesigner/vfdwidgets.pas')
-rw-r--r--uidesigner/vfdwidgets.pas13
1 files changed, 13 insertions, 0 deletions
diff --git a/uidesigner/vfdwidgets.pas b/uidesigner/vfdwidgets.pas
index 7188aabb..f2c9cd57 100644
--- a/uidesigner/vfdwidgets.pas
+++ b/uidesigner/vfdwidgets.pas
@@ -289,6 +289,11 @@ begin
'vfd.editdirectory', @stdimg_vfd_editdirectory,
sizeof(stdimg_vfd_editdirectory),
0, 0);
+
+ fpgImages.AddMaskedBMP(
+ 'vfd.editfont', @stdimg_vfd_editfont,
+ sizeof(stdimg_vfd_editfont),
+ 0, 0);
end;
procedure AddWidgetPosProps(wgc: TVFDWidgetClass);
@@ -746,6 +751,14 @@ begin
wc.WidgetIconName := 'vfd.editdirectory';
RegisterVFDWidget(wc);
+ // Font Edit
+ wc := TVFDWidgetClass.Create(TfpgFontEdit);
+ wc.NameBase := 'DirectoryEdit';
+ wc.AddProperty('FontDesc', TPropertyString, 'Specify a preset font description');
+ wc.AddProperty('TabOrder', TPropertyInteger, 'The tab order');
+ wc.WidgetIconName := 'vfd.editfont';
+ RegisterVFDWidget(wc);
+
// Other - do not delete!!! this should be the last...
wc := TVFDWidgetClass.Create(TOtherWidget);
wc.NameBase := 'Custom';