Exception EListError when defining grid col inside the form OnCreate event
Original Reporter info from Mantis: asantos35
-
Reporter name: Anderson Santos
Original Reporter info from Mantis: asantos35
- Reporter name: Anderson Santos
Description:
When I put the code below inside a form OnCreate Event an Exception is generated when I display the Grid :
procedure TForm1.FormCreate(Sender: TObject);
begin
Grid1.Col := Grid1.ColCount-1;
Grid1.Row := 1;
end;
This is happening with all svn versions of Lazarus 0.9.31 for Mac.
Additional information:
I created a Form with a PageControl with 2 TabSheets with a grid inside each one. If I set the col of the grid inside the OnCreate Form event, as soon the form is created an Exception is generated and the program stops.
I can reproduce the error all times and I have attached a simple program that shows it.
Mantis conversion info:
- Mantis ID: 19270