BCB Mailing List

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

[BCB] Forms Constructor



Tamas,
   Thanks for the quick reply.

   Since the old create order was to invoke the constructor first, isn't
setting OldCreateOrder to false to invoke the constructor first
counter-intuitive?

--
Wojciech Komornicki                                Dept of Mathematics
wnk@nospam.piper.hamline.edu                               Hamline University
http://www.hamline.edu/~wnk/bcb                      St Paul, MN 55104
                                                                   USA


>>>>> "Tamas" == Tamas Demjen <s6157dem@nospam.ural2.hszk.bme.hu> writes:

  >> 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?

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

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

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

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

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

  Tamas> Hope this helps.

  Tamas> Tom


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