dear all,
(Lazarus 0.9.29 r25476 FPC 2.4.0 i386-win32-win32/win64)
I found a problem in colmoving that there isn't in previous svn versions.
If I put a stringgrid on a form and I enable the colmoving option and in
Form create I put:
procedure TForm1.FormCreate(Sender: TObject);
begin
StringGrid1.Columns.Add;
StringGrid1.Columns[0].Title.Caption:= 'a';
StringGrid1.Cells[1, 1]:= '1';
StringGrid1.Columns.Add;
StringGrid1.Columns[1].Title.Caption:= 'b';
StringGrid1.Cells[2, 1]:= '2';
end;
When I move the columns only the title (fixed row) are moved not the cells.
Otherwise if I use the following code to fill the grid the columns are
correctly moved:
procedure TForm1.FormCreate(Sender: TObject);
begin
StringGrid1.ColCount:= 3;
StringGrid1.cells[1, 0]:= 'a';
StringGrid1.cells[1, 1]:= '1';
StringGrid1.cells[2, 0]:= 'b';
StringGrid1.cells[2, 1]:= '2';
end;
Any hint?
Andrea
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus