[lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Marco Alvarado
I need to create my forms dynamically. In Delphi I just remove the designed form from the main program, so it looks like this: ... begin Application.Initialize; Application.Run; end. Later on, I just create new instances of my forms and assign it's properties, i.e.: ... AForm :=

Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Vincent Snijders
Marco Alvarado schreef: I need to create my forms dynamically. In Delphi I just remove the designed form from the main program, so it looks like this: ... begin Application.Initialize; Application.Run; end. Later on, I just create new instances of my forms and assign it's properties, i.e.:

Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Marco Alvarado
Oh, forgot to tell, this part: ... begin Application.Initialize; Application.Run; end. is inside an unit's initilization section. So the main program still runs, creating the form. :D 2007/11/26, Vincent Snijders [EMAIL PROTECTED]: Marco Alvarado schreef: I need to create my forms

Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Vincent Snijders
Marco Alvarado schreef: Oh, forgot to tell, this part: ... begin Application.Initialize; Application.Run; end. is inside an unit's initilization section. So the main program still runs, creating the form. :D Until you do Application.Initialize, some widget set call might not work. So

Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Mattias Gaertner
On Mon, 26 Nov 2007 12:05:27 -0600 Marco Alvarado [EMAIL PROTECTED] wrote: Oh, forgot to tell, this part: ... begin Application.Initialize; Application.Run; end. is inside an unit's initilization section. So the main program still runs, creating the form. :D The

Re: [lazarus] Creating TForms dynamically (works in Delphi, not Lazarus)

2007-11-26 Thread Marco Alvarado
Sorry, this is the part that is inside the initialization section: Application.Initialize; Application.Run; Not in the main begin..end, so it should execute before the main program creates the window. Anyway, maybe the way the widgetset works is not the same as the way VCL works. Maybe I