Article View: comp.lang.pascal.delphi.misc
Article #457Re: Create form in IDE but minimize resources used?
From: KLinZ
Date: Fri, 25 Oct 2002 17:04
Date: Fri, 25 Oct 2002 17:04
19 lines
2114 bytes
2114 bytes
Saige Losli wrote: > Hello, > > I am using Delphi 4. I have created a resource-intensive form with > lots of controls on many tabs. It is so big that some machines run > out of memory and crash when using it. > > Is there a way to create forms using Borland's drag-and-drop IDE, > yet not "instantiate" any controls on a tab until that tab is > activated? Likewise, discard the controls when selecting a new tab. > > Any short coding examples, please? Thanks. Use TWinControl.DestroyHandle for the tabs that are not visible. Delphi will re-create the handles if needed. -- www.zenobits.com
Technical Details
Message-ID:
<mNeu9.108$n72.442@amstwist00>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!amsnews01.chello.com!amstwist00.POSTED!not-for-mailReferences:
<6da8f140.0210241551.589e3324@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f973b,f1e819ed237d9a36 X-Google-Attributes: gidf973b,public X-Google-Thread: fb0ea,f1e819ed237d9a36 X-Google-Attributes: gidfb0ea,public X-Google-Thread: f973d,f1e819ed237d9a36 X-Google-Attributes: gidf973d,public X-Google-Thread: 10baee,f1e819ed237d9a36 X-Google-Attributes: gid10baee,public X-Google-ArrivalTime: 2002-10-25 10:01:07 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-han1.dfn.de!news-lei1.dfn.de!newsfeed.freenet.de!amsnews01.chello.com!amstwist00.POSTED!not-for-mail From: "KLinZ" <klinz@NOSPAMzenobitsSPAMNO.com> Newsgroups: comp.lang.pascal.delphi.misc,comp.lang.pascal.delphi.components.usage,borland.public.delphi.vcl.components.using,alt.lang.delphi References: <6da8f140.0210241551.589e3324@posting.google.com> Subject: Re: Create form in IDE but minimize resources used? Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <mNeu9.108$n72.442@amstwist00> Date: Fri, 25 Oct 2002 19:04:14 +0200 NNTP-Posting-Host: 212.187.71.152 X-Complaints-To: abuse@chello.com X-Trace: amstwist00 1035565266 212.187.71.152 (Fri, 25 Oct 2002 19:01:06 MET DST) NNTP-Posting-Date: Fri, 25 Oct 2002 19:01:06 MET DST