Re: Form create in run-time

Paulo Nievierowski <[email protected]> Sat, 17 May 2003 09:57:57 -0300
Newsgroups gmane.comp.lang.delphi.kylix
Message-ID <[email protected]>
Uau!

Thank you very match!

Paulo Nievierowski

On Sat, 17 May 2003 07:58:52 -0400, [email protected] wrote:
>You may also want to check out the TCustomForm.CreateNew
>method.
>
>>Hi,
>>
>>quite a easy task:
>>
>>{snip]
>>var
>>aForm: TForm;
>>begin
>>aForm := TForm.Create(Application);
>>with aForm do
>>try
>>ShowModal;
>>finally
>>Free;
>>end;
>>end;
>>
>>That's a simple snippet how to create a form at runtime inside a
>>proc or
>>func, show it (modal - must be closed before returning to the
>>calling form)
>>and definitely free it to avoid memory leaks.
>>
>>Hope this helped
>>regards
>>Michael Jung
>>
>>Senior Software-Architect, Designer & Consultant
>>CIDE Creative Information Design & Economy, http://www.cide.de
>>Operator at http://www.42s.net & http://www.level42.org
>>
>>
>>At 15:28 16.5.2003 -0300, you wrote:
>>>Hello All,
>>>
>>>I need to create forms (from zero) in run-time. How to do?
>>>Thank“s
>>>
>>>Paulo Nievierowski



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/uetFAA/i7folB/TM
---------------------------------------------------------------------~->

-------------------------------------------------------
Forum / mailing list for Borland Kylix programmers
Our web page:  http://groups.yahoo.com/group/kylixgroup
To join the forum: [email protected]
To unsubscribe:  [email protected]
To post your messages:       [email protected]
To contact the moderator:  [email protected]
------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/