BCB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BCB] Forms Constructor



> Here is what I have.  I have a class derived from TForm.  I have overriden
> the OnResize method.  When the application is launched, my OnResize method
> is called before the constructor is called.

> Can anyone explain this behaviour?

If OldCreateOlder is false, the constructor will be invoked first, and
then OnCreate, then OnShow, etc. If OldCreateOlder is true, the order of
things is different.

Here's the explanation that Kent Reisdorph (TeamB) has posted to one of
the forums.inprise.com newsgroups:

"[...]OldCreateOrder should be set to false for all C++Builder 4
projects.

When you open a C++Builder 3 project in C++Builder 4, the IDE will
convert the project to version 4 format. Unfortunately, the
OldCreateOrder property is set to true during this process.[...]

You can download the Project Converter FREE from our web site now.
Just go to http://www.turbopower.com/products/tpconvert/."

Hope this helps.

Tom


W Komornicki's Home Page | Main Index | Thread Index