Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-05

striggrid colmoving

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrea Mauri

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

Reply by email

Jesus Reyes
to Andrea Mauri

--- El lun 17-may-10, Andrea Mauri escribi?:

Show quoted text 38 lines
De: Andrea Mauri Asunto: [Lazarus] striggrid colmoving A: "Lazarus mailing list" Fecha: lunes, 17 de mayo de 2010, 9:06 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

This is a regression, it used to work at least before r24057, I will take a Reyes A.

Reply by email

Jesus Reyes
to Jesus Reyes

--- El mar 18-may-10, Jesus Reyes escribi?:

Show quoted text 20 lines
De: Jesus Reyes Asunto: Re: [Lazarus] striggrid colmoving A: "Lazarus mailing list" Fecha: martes, 18 de mayo de 2010, 9:03 --- El lun 17-may-10, Andrea Mauri escribi?: > De: Andrea Mauri > Asunto: [Lazarus] striggrid colmoving > A: "Lazarus mailing list" > Fecha: lunes, 17 de mayo de 2010, 9:06 > 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. >

...

Show quoted text 9 lines
> Any hint? > Andrea This is a regression, it used to work at least before r24057, I will take a look at it. Jesus Reyes A.

fixed in r25501

Jesus Reyes A.

Reply by email