Article View: borland.public.cppbuilder.oodesign
Article #113Re: BCB and OO
From: Phil Staite
Date: Mon, 08 Nov 2004 01:11
Date: Mon, 08 Nov 2004 01:11
12 lines
1726 bytes
1726 bytes
I always looked at it as a convenience thing. You're not going to have *that* many forms in any given project. Also, by their nature it is fairly easy to give them unique names so they don't really pollute the global namespace. Or you could leave the plain TFormN form, but for projects of more than 2 or 3 forms it aides understanding to give them meaningful names. But for convenience with auto-create forms it is easy to wire them together by simply including a header and knowing that you've got the global pointer to the instance. Also, as created by the IDE, each form is a global resource, so a global pointer to the instance is appropriate IMHO. If you're going to dynamically create and own forms, then by all means, own them in the appropriate scope...
Technical Details
Message-ID:
<418ed4db$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<410eeeef$1@newsgroups.borland.com> <j5acxdgdzy.fsf@explicit.atdesk.com> <410f0267@newsgroups.borland.com> <j5r7qonx3c.fsf@explicit.atdesk.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10db1e,2b952f7b4dbe888b X-Google-Attributes: gid10db1e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Phil Staite" <no.spam@not.a.chance> Newsgroups: borland.public.cppbuilder.oodesign References: <410eeeef$1@newsgroups.borland.com> <j5acxdgdzy.fsf@explicit.atdesk.com> <410f0267@newsgroups.borland.com> <j5r7qonx3c.fsf@explicit.atdesk.com> Subject: Re: BCB and OO Date: Sun, 7 Nov 2004 19:11:21 -0600 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 206.53.29.93 Message-ID: <418ed4db$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099879643 206.53.29.93 (7 Nov 2004 18:07:23 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail