Re: Form create in run-time

[email protected] Sat, 17 May 2003 07:58:52 -0400
Newsgroups gmane.comp.lang.delphi.kylix
Message-ID <3EC5EBBC.6292.1F44531@localhost>
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
> >
> >
> >
> >-------------------------------------------------------
> >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/
> 
> 
>                        Yahoo! Groups Sponsor
>                                   
>                            ADVERTISEMENT
>                             Click Here!
>                                   
>                                   
>                                   
> 
> 
> 
> -------------------------------------------------------
> 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 the Yahoo! Terms of Service.


Richard B. Winston
[email protected]
301-474-2762
http://www.mindspring.com/~rbwinston/rbwinsto.htm
MODFLOW Help File: 
http://www.mindspring.com/~rbwinston/modhelp.htm
ftp://ftp.mindspring.com/users/rbwinston/incoming
My statements are personal opinion.




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/aM1XQD/od7FAA/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/