summaryrefslogtreecommitdiff
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/gui/gridtest/gridtest.lpr9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/gui/gridtest/gridtest.lpr b/examples/gui/gridtest/gridtest.lpr
index d85bad61..81534eec 100644
--- a/examples/gui/gridtest/gridtest.lpr
+++ b/examples/gui/gridtest/gridtest.lpr
@@ -119,7 +119,14 @@ begin
// add some text
stringgrid.Cells[2, 3] := 'Hello';
stringgrid.Cells[3, 1] := '(r1,c3)';
-// stringgrid.Anchors := [anLeft, anTop, anRight, anBottom];
+
+ // alignment test
+ stringgrid.columns[1].Alignment := taLeftJustify;
+ stringgrid.Cells[1, 2] := 'left';
+ stringgrid.columns[2].Alignment := taCenter;
+ stringgrid.Cells[2, 2] := 'center';
+ stringgrid.columns[3].Alignment := taRightJustify;
+ stringgrid.Cells[3, 2] := 'right';
pagecontrol.ActivePageIndex := 0;