diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2009-03-20 14:28:21 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2009-03-20 14:28:21 +0000 |
commit | 13ae577973bc4402f21ab6d547f423f2f95c5157 (patch) | |
tree | fc8564fe304fa808fc378c30739b7dd5669415d9 /uidesigner/vfdwidgets.pas | |
parent | bc3cbd7679af7b609b5726f8f8ce269878b1bab6 (diff) | |
download | fpGUI-13ae577973bc4402f21ab6d547f423f2f95c5157.tar.xz |
* Minor X11 debugging improvements.
* Named internal components
* Introduced TfpgBaseCheckbox class.
* Refactored text drawing in ComboBox to a method that can be overridden in descendants.
* Implemented a new (experimental) Calendar Combo with Checkbox for optional date selection.
* Added Calendar Combo Check component to UI Designer.
* Fixed some missing properties from Calendar Combo component in UI Designer.
Diffstat (limited to 'uidesigner/vfdwidgets.pas')
-rw-r--r-- | uidesigner/vfdwidgets.pas | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/uidesigner/vfdwidgets.pas b/uidesigner/vfdwidgets.pas index d002e5ac..65057c84 100644 --- a/uidesigner/vfdwidgets.pas +++ b/uidesigner/vfdwidgets.pas @@ -268,6 +268,11 @@ begin sizeof(stdimg_vfd_groupbox), 0, 0); + fpgImages.AddMaskedBMP( + 'vfd.combodatecheckedit', @stdimg_vfd_combodatecheckedit, + sizeof(stdimg_vfd_combodatecheckedit), + 0, 0); + end; procedure AddWidgetPosProps(wgc: TVFDWidgetClass); @@ -389,13 +394,28 @@ begin // Calendar ComboBox wc := TVFDWidgetClass.Create(TfpgCalendarCombo); wc.NameBase := 'CalendarCombo'; + wc.AddProperty('DateFormat', TPropertyString, 'Standard RTL date formatting applies'); wc.AddProperty('FontDesc', TPropertyFontDesc, 'The font used for displaying the text'); wc.AddProperty('ParentShowHint', TPropertyBoolean, ''); wc.AddProperty('ShowHint', TPropertyBoolean, ''); + wc.AddProperty('WeekStartDay', TPropertyInteger, '0 = Sun, 1 = Mon, etc.'); wc.AddProperty('TabOrder', TPropertyInteger, 'The tab order'); wc.WidgetIconName := 'vfd.combodateedit'; RegisterVFDWidget(wc); + // Calendar ComboBox Checkbox + wc := TVFDWidgetClass.Create(TfpgCalendarCheckCombo); + wc.NameBase := 'CalendarCombo'; + wc.AddProperty('Checked', TPropertyBoolean, 'Boolean value'); + wc.AddProperty('DateFormat', TPropertyString, 'Standard RTL date formatting applies'); + wc.AddProperty('FontDesc', TPropertyFontDesc, 'The font used for displaying the text'); + wc.AddProperty('ParentShowHint', TPropertyBoolean, ''); + wc.AddProperty('ShowHint', TPropertyBoolean, ''); + wc.AddProperty('WeekStartDay', TPropertyInteger, '0 = Sun, 1 = Mon, etc.'); + wc.AddProperty('TabOrder', TPropertyInteger, 'The tab order'); + wc.WidgetIconName := 'vfd.combodatecheckedit'; + RegisterVFDWidget(wc); + // ListBox wc := TVFDWidgetClass.Create(TfpgListBox); wc.NameBase := 'ListBox'; |