Article View: borland.public.cppbuilder.nativeapi
Article #12492Re: MDI application save system resource.
From: Hans Galema
Date: Tue, 09 Dec 2003 07:46
Date: Tue, 09 Dec 2003 07:46
22 lines
1585 bytes
1585 bytes
Cactus wrote:
> I move children Form to main Form body.
You mean: I do not let the program autocreate all the forms, but
will create a form dynamic when needed ?
> that could save system resource?
Yes. Also do delete them when not needed.
> void __fastcall TArchForm::ChildrenBittonClick(TObject *Sender)
> {
> Application->CreateForm(__classid(TChildrenForm), &ChildrenForm);
Do not use Application->CreateForm(). Use new instead.
ChildrenForm = new TChildrenForm ( this );
This question could better have been posted in the ...vcl.using newsgroup.
Hans.
Technical Details
Message-ID:
<3fd57cfe$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fd477ec@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,50bbf5166b66d02 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-09 00:09:15 PST Date: Tue, 09 Dec 2003 08:46:49 +0100 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: MDI application save system resource. References: <3fd477ec@newsgroups.borland.com> In-Reply-To: <3fd477ec@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.108.11 Message-ID: <3fd57cfe$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1070955774 129.125.108.11 (8 Dec 2003 23:42:54 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail