summaryrefslogtreecommitdiff
path: root/uidesigner
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2011-04-23 10:16:58 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2011-04-23 10:16:58 +0200
commit65b51019e8fcf540c47446d49475c0800436e054 (patch)
tree4d11a1f2f9e9f1c62313e36ed5d01fb2a9b0fd47 /uidesigner
parent7023d6484881eb50d872160765c2ffc8ce1c2602 (diff)
downloadfpGUI-65b51019e8fcf540c47446d49475c0800436e054.tar.xz
UI Designer: registered the new TfpgEditButton component
Diffstat (limited to 'uidesigner')
-rw-r--r--uidesigner/icons.inc103
-rw-r--r--uidesigner/vfdwidgets.pas16
2 files changed, 119 insertions, 0 deletions
diff --git a/uidesigner/icons.inc b/uidesigner/icons.inc
index 6af0aa1e..7b8cf200 100644
--- a/uidesigner/icons.inc
+++ b/uidesigner/icons.inc
@@ -3217,6 +3217,109 @@ Const
255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,
255,255, 0,255,255, 0,255, 0, 0, 0);
+Const
+ stdimg_vfd_editbutton : Array[0..1709] of byte = (
+ 66, 77,174, 6, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 40, 0, 0,
+ 0, 23, 0, 0, 0, 23, 0, 0, 0, 1, 0, 24, 0, 0, 0, 0, 0,
+ 120, 6, 0, 0, 19, 11, 0, 0, 19, 11, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,
+ 255,255, 0,255,128,128,128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0,255, 0,255,255, 0,255,255, 0,255,255,
+ 0,255,255, 0,255,255, 0,255,128,128,128,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192, 0, 0, 0, 0, 0, 0,255, 0,255,255, 0,255,
+ 255, 0,255,255, 0,255,255, 0,255,255, 0,255,128,128,128,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,188,188,188,192,192,192, 0, 0, 0, 0, 0, 0,255, 0,
+ 255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,128,
+ 128,128,192,192,192,192,192,192,192,192,192,192,192,192,193,193,193,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192, 0, 0, 0, 0,
+ 0, 0,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,
+ 255, 0,255,128,128,128,192,192,192,192,192,192,192,192,192,193,193,
+ 193,191,191,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 0, 0, 0, 0, 0, 0,255, 0,255,255, 0,255,255, 0,255,255, 0,
+ 255,255, 0,255,255, 0,255,128,128,128,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192, 0, 0, 0, 0, 0, 0,255, 0,255,255, 0,255,255,
+ 0,255,255, 0,255,255, 0,255,255, 0,255,128,128,128,192,192,192,
+ 192,192,192,192,192,192,193,193,193,192,192,192,192,192,192,192,192,
+ 192,193,193,193,194,194,194,193,193,193,196,196,196,192,192,192,192,
+ 192,192,192,192,192,192,192,192, 0, 0, 0, 0, 0, 0,255, 0,255,
+ 255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,128,128,
+ 128,192,192,192,192,192,192,192,192,192,193,193,193,192,192,192,191,
+ 191,191,192,192,192,192,192,192,192,192,192,192,192,192,190,190,191,
+ 192,192,192,194,194,194,194,194,194,192,192,192, 0, 0, 0, 0, 0,
+ 0,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255,
+ 0,255,128,128,128,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,193,193,193,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192, 0,
+ 0, 0, 0, 0, 0,255, 0,255,255, 0,255,255, 0,255,255, 0,255,
+ 255, 0,255,255, 0,255,128,128,128,192,192,192,192,192,192,192,192,
+ 192,192,192,192,194,194,194,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,190,190,191,192,192,192,192,192,192,
+ 192,192,192, 0, 0, 0, 0, 0, 0,255, 0,255,255, 0,255,255, 0,
+ 255,255, 0,255,255, 0,255,255, 0,255,128,128,128,192,192,192,192,
+ 192,192,193,193,193,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,193,193,193,192,192,192,192,192,192,192,192,
+ 192,195,195,195,192,192,192, 0, 0, 0, 0, 0, 0,255, 0,255,255,
+ 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,128,128,128,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,197,197,197,192,192,192, 0, 0, 0, 0, 0, 0,
+ 255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,
+ 255,128,128,128,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192, 0, 0,
+ 0, 0, 0, 0,255, 0,255,128,128,128,255,255,255,255,255,255,255,
+ 255,255,255,255,255,128,128,128,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,
+ 192,192, 0, 0, 0, 0, 0, 0,255, 0,255,128,128,128, 0, 0, 0,
+ 192,192,192,192,192,192,192,192,192, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255, 0,255,128,128,
+ 128, 0, 0, 0,255,255,255,255,255,255,255,255,255, 0, 0, 0,255,
+ 255,255, 0, 0, 0,221,150,106,221,150,106,221,150,106,221,150,106,
+ 221,150,106,221,150,106,221,150,106,221,150,106,221,150,106,221,150,
+ 106,221,150,106, 0, 0, 0,255,255,255, 0, 0, 0, 0, 0, 0,255,
+ 0,255,128,128,128, 0, 0, 0,255,255,255,255,255,255,255,255,255,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0,255, 0,255,128,128,128, 0, 0, 0,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,192,192,192,255,255,255,192,192,192,
+ 0, 0, 0, 0, 0, 0,192,192,192,128,128,128,192,192,192,255,255,
+ 255,255, 0,255, 0, 0, 0,255, 0,255,128,128,128, 0, 0, 0,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,192,192,192,255,255,
+ 255,192,192,192,192,192,192,192,192,192,192,192,192,128,128,128,192,
+ 192,192,255,255,255,255, 0,255, 0, 0, 0,255, 0,255,128,128,128,
+ 0, 0, 0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,192,
+ 192,192,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
+ 255,255,255,192,192,192,255,255,255,255, 0,255, 0, 0, 0,255, 0,
+ 255,128,128,128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,255,255,255,255, 0,255, 0,
+ 0, 0,255, 0,255,128,128,128,128,128,128,128,128,128,128,128,128,
+ 128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,
+ 128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,
+ 128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,
+ 255, 0,255, 0, 0, 0,255, 0,255,255, 0,255,255, 0,255,255, 0,
+ 255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255,
+ 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,
+ 255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,255,255, 0,
+ 255,255, 0,255,255, 0,255, 0, 0, 0);
Const
stdimg_vfd_colorwheel : Array[0..821] of byte = (
diff --git a/uidesigner/vfdwidgets.pas b/uidesigner/vfdwidgets.pas
index 4e457c26..db67eade 100644
--- a/uidesigner/vfdwidgets.pas
+++ b/uidesigner/vfdwidgets.pas
@@ -298,6 +298,11 @@ begin
0, 0);
fpgImages.AddMaskedBMP(
+ 'vfd.editbutton', @stdimg_vfd_editbutton,
+ sizeof(stdimg_vfd_editbutton),
+ 0, 0);
+
+ fpgImages.AddMaskedBMP(
'vfd.colorwheel', @stdimg_vfd_colorwheel,
sizeof(stdimg_vfd_colorwheel),
0, 0);
@@ -899,6 +904,17 @@ begin
wc.WidgetIconName := 'vfd.editfont';
RegisterVFDWidget(wc);
+ // Edit Button
+ wc := TVFDWidgetClass.Create(TfpgEditButton);
+ wc.NameBase := 'EditButton';
+ wc.AddProperty('Align', TPropertyEnum, 'Component alignment');
+ wc.AddProperty('Enabled', TPropertyBoolean, '');
+ wc.AddProperty('ExtraHint', TPropertyString, '');
+ wc.AddProperty('TabOrder', TPropertyInteger, 'The tab order');
+ wc.AddProperty('Text', TPropertyString, 'Specify the initial text value');
+ wc.WidgetIconName := 'vfd.editbutton';
+ RegisterVFDWidget(wc);
+
// Color wheel
wc := TVFDWidgetClass.Create(TfpgColorWheel);
wc.NameBase := 'ColorWheel';