diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-03-10 10:53:42 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-03-10 10:53:42 +0000 |
commit | da58a092fdedcbbaf508952e3dc9e354f9bdedc0 (patch) | |
tree | d78b9dea82aea957490847d1f1e345b0fb0562ae /examples | |
parent | ba11bd599d1ddf7a1e2e2703edd16b5dd513477e (diff) | |
download | fpGUI-da58a092fdedcbbaf508952e3dc9e354f9bdedc0.tar.xz |
* Applied label patch from Jean-Marc adding improved Layout, Wraptext and Alignment behavior.
* Removed TfpgLabel.Length property as it's the same functionality as Width property.
* Added the new TfpgLabel properties to the UI Designer.
* Added some minor fixes to TfpgLabel when setting properties via the UI Designer.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/apps/uidesigner/vfdwidgets.pas | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/apps/uidesigner/vfdwidgets.pas b/examples/apps/uidesigner/vfdwidgets.pas index 678de21a..86519d8f 100644 --- a/examples/apps/uidesigner/vfdwidgets.pas +++ b/examples/apps/uidesigner/vfdwidgets.pas @@ -225,8 +225,11 @@ begin // Label wc := TVFDWidgetClass.Create(TfpgLabel); wc.NameBase := 'lblName'; - wc.AddProperty('Text', TPropertyString, 'Label text'); + wc.AddProperty('Alignment', TPropertyEnum, 'Horizontal text alignment'); wc.AddProperty('FontDesc', TPropertyString, 'The font used for displaying the label text'); + wc.AddProperty('Layout', TPropertyEnum, 'Vertical text layout'); + wc.AddProperty('Text', TPropertyString, 'Label text'); + wc.AddProperty('WrapText', TPropertyBoolean, 'If True text will wrap when it doesn''t fit the width'); wc.WidgetIconName := 'vfd.label'; RegisterVFDWidget(wc); @@ -254,7 +257,7 @@ begin wc.NameBase := 'btnName'; wc.AddProperty('Text', TPropertyString, 'Initial text'); wc.AddProperty('AllowAllUp', TPropertyBoolean, ''); - wc.AddProperty('Embedded', TPropertyBoolean, ''); + wc.AddProperty('Embedded', TPropertyBoolean, 'No focus rectangle will be drawn. eg: Toolbar buttons'); wc.AddProperty('FontDesc', TPropertyString, 'The font used for displaying the text'); wc.AddProperty('GroupIndex', TPropertyInteger, ''); wc.AddProperty('ImageMargin', TPropertyInteger, ''); |