I have heard that in D5 there are environmental settings that turn off the
DPR file additions and the 'form object variables' from being created
automatically.

I'm sure that will make a lot of people happy.


-----Original Message-----
From: Aaron Scott-Boddendijk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 19 August 1999 15:30
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Circular unit references - gotta love'm!


> Whew! I feel slightly vindicated about my comment about circular
> references usually indicating a problem with design.

> The place I encounter it most often is with people who have a zillion
> forms, all of which have references to one another. Yuck!

one gripe I have relating to forms is the automatic adding to the DPR
file of

Application.CreateForm(TFormX,FormX);

since most of my forms are designed to be reused they do not have
a form object variable at all as these are created on the fly either as
local variables or structures like

with TFormX.Create(nil) do try
  if ShowModal(MyParameter)=mrOK then...
finally
end;

Another one is the naming scopes for components when hijacking controls
off another form can get you into trouble especially if you're a keen user
of
actionlists and often don't name your Toolbar buttons since all interaction
is
managed by the actionlist.  Forms don't like having 2 components named the
same even if the duplication is 'owned' on another form...

--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to