🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #555

Re: Create VCL Control from within an Object

#555
From: Bob Gonder
Date: Thu, 31 Jan 2008 22:32
24 lines
1927 bytes
JohnC wrote:

>This one confuses me.  Why do you say it is a Delphi event?  I've been using 
>it for years with C++ code.

Delphi and C++ construct in different orders.

<HELP>
TCustomForm::OnCreate Event
Note: 
 Use of the OnCreate event is discouraged in C++ code because it can interact badly with
the form's constructor (see OldCreateOrder). It is recommended that you override the form
constructor instead.
</HELP>

>How would one use the constructor except through a hook?  FormCreate is just 
>a hook (into the constructor, I believe).

Form1::Form1()
{	C++ constructor. Startup code goes here.
}
Form1::OnCreate()
{	Delphi constructor. Leave empty.
}
Technical Details
Message-ID: <b3i4q35gvcao4s2v79ea2odgfl6psidu10@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47a1c92f$1@newsgroups.borland.com> <MPG.220bf5123600e831989a26@newsgroups.borland.com> <47a1e5d8$1@newsgroups.borland.com> <MPG.220c37f435e9dd16989a27@newsgroups.borland.com> <47a22e26$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,15058af8c1208ee6
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Create VCL Control from within an Object
Date: Thu, 31 Jan 2008 14:32:36 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <b3i4q35gvcao4s2v79ea2odgfl6psidu10@4ax.com>
References: <47a1c92f$1@newsgroups.borland.com> <MPG.220bf5123600e831989a26@newsgroups.borland.com> <47a1e5d8$1@newsgroups.borland.com> <MPG.220c37f435e9dd16989a27@newsgroups.borland.com> <47a22e26$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.146.141
X-Trace: newsgroups.borland.com 1201818754 67.77.146.141 (31 Jan 2008 14:32:34 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail