[Lazarus] creating multiple non-modal form instances

Graeme Geldenhuys graemeg.lists at gmail.com
Tue Feb 3 10:45:21 CET 2009


On Tue, Feb 3, 2009 at 11:33 AM, Michael Van Canneyt
<michael at freepascal.org> wrote:
>>   { very basic unique name and should probably be improved}
>>   frm.Name := frm.Name + IntToStr(Screen.FormCount + 1);
>
> That will break if you have for example 5 forms, close form 4 and then
> create a new form.

Yup, I noticed that right after I posted the message. :-)


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/



More information about the Lazarus mailing list