diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-01-08 14:17:26 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-01-08 14:17:26 +0000 |
commit | a21b4af4ffbaa9effeee703d16f3239d622e7735 (patch) | |
tree | e54f30d4102f838461431af488ea1d37d77d7a7d /extras | |
parent | 34433daddc3d8d06cb4188ae2d24f46e9734dc9f (diff) | |
download | fpGUI-a21b4af4ffbaa9effeee703d16f3239d622e7735.tar.xz |
* Fixed StringGrid composite mediator. The column title was never set correctly.
Diffstat (limited to 'extras')
-rw-r--r-- | extras/tiopf/gui/tiCompositeMediators.pas | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/extras/tiopf/gui/tiCompositeMediators.pas b/extras/tiopf/gui/tiCompositeMediators.pas index 97267a49..be729568 100644 --- a/extras/tiopf/gui/tiCompositeMediators.pas +++ b/extras/tiopf/gui/tiCompositeMediators.pas @@ -13,9 +13,9 @@ uses Classes ,SysUtils ,tiObject - ,gui_listview { TListView } + ,gui_listview { TfpgListView } ,Contnrs { TObjectList } - ,gui_grid { TStringGrid } + ,gui_grid { TfpgStringGrid } ; @@ -573,8 +573,8 @@ begin for i := 1 to tiNumToken(FDisplayNames, cFieldDelimiter) do begin lField := tiToken(FDisplayNames, cFieldDelimiter, i); - FView.Cells[i, 1] := tiFieldName(lField); FView.ColumnWidth[i] := tiFieldWidth(lField); + FView.ColumnTitle[i] := tiFieldCaption(lField); //resize the last column to fill the grid. if i = tiNumToken(FDisplayNames, cFieldDelimiter) then @@ -597,7 +597,6 @@ begin FView.RowSelect := True; FView.ColumnCount := tiNumToken(FDisplayNames, cFieldDelimiter); FView.RowCount := FModel.Count; -// FView.ColumnWidth[0] := 20; end; procedure TCompositeStringGridMediator.RebuildStringGrid; |