I want to build a class that is smart enough to know if it should create
itself.
Neal
-Steve-
Neal <ne...@msengineering.net> wrote in message
news:7v7qf1$mj...@forums.borland.com...
Don't call Create unless you want it created. Once the process is started,
it is difficult to stop it because a lot of processes are involved (both in
your code and within Windows).
Create a method in this form that you can call instead, that method can
*first* check the criteria and only Show the form if required.
--
Wayne Niddery - WinWright Consulting
RADBooks - http://members.home.net/wniddery/
You have a Right to Free Speech, but not the right to make me listen, nor to
use my property as your soapbox.
Sorry but TeamB cannot answer support
questions received via email.
Rgds Tim.
SO...what would the signature (prototype) of the TForm.Create() method look
like?
THanks,
Neal
Xavier Pacheco (TeamB) wrote in message
<381893e6...@forums.inprise.com>...
>Neal,
> As Steve mentioned, the OnCreate occurs after the form is created.
>Do this, override the create constructor, then abort before calling
>inherited Create(). This will prevent the form from being created.
Constructor Create(Owner : TComponent);Override;
Rgds Tim.
Neal <ne...@msengineering.net> wrote in message
news:7vaafi$cg...@forums.borland.com...