summaryrefslogtreecommitdiff
path: root/src/gui/gui_popupcalendar.pas
diff options
context:
space:
mode:
authorgraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-12-14 20:17:45 +0000
committergraemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf>2007-12-14 20:17:45 +0000
commit1291b44c5d0b5abaecba661f01d1034c3df2344a (patch)
tree808dc9a814161ccac09b56d80dda0f5fe8949ab4 /src/gui/gui_popupcalendar.pas
parentfcb239976a2acb067511c25c8f020668883341f7 (diff)
downloadfpGUI-1291b44c5d0b5abaecba661f01d1034c3df2344a.tar.xz
* Implemented Cell Text Alignment.
* Fixed CalendarCombo so dates are centered in grid cells. * Fixed memory leak in AbstractCombobox. * Modified the GridTest example to show the column text alignment in action.
Diffstat (limited to 'src/gui/gui_popupcalendar.pas')
-rw-r--r--src/gui/gui_popupcalendar.pas14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/gui_popupcalendar.pas b/src/gui/gui_popupcalendar.pas
index 53b9e215..4e90c4a5 100644
--- a/src/gui/gui_popupcalendar.pas
+++ b/src/gui/gui_popupcalendar.pas
@@ -569,13 +569,13 @@ begin
begin
Name := 'grdName1';
SetPosition(0, 23, 233, 119);
- AddColumn('Mon', 33, taLeftJustify);
- AddColumn('Tue', 32, taLeftJustify);
- AddColumn('Wed', 33, taLeftJustify);
- AddColumn('Thu', 32, taLeftJustify);
- AddColumn('Fri', 33, taLeftJustify);
- AddColumn('Sat', 32, taLeftJustify);
- AddColumn('Sun', 33, taLeftJustify);
+ AddColumn('Mon', 33, taCenter);
+ AddColumn('Tue', 32, taCenter);
+ AddColumn('Wed', 33, taCenter);
+ AddColumn('Thu', 32, taCenter);
+ AddColumn('Fri', 33, taCenter);
+ AddColumn('Sat', 32, taCenter);
+ AddColumn('Sun', 33, taCenter);
FontDesc := '#Grid';
HeaderFontDesc := '#GridHeader';
RowCount := 6;