P,
The reason for my confusion is this. I have the following:
TMyBaseClass = class(TFrame) with base class functionality, published
properties etc.
And then TMyDerivedClass = class(TMyBaseClass)
All of the above was in a package. Compile and install the package with no
problem. Drop a TMyDerivedClass on a form and I would get the error:
"TMyDerivedClass.OldCreateOrder property does not exist" and the same for
PixelsPerInch, TextHeight.
In order to fix this I did the following:
1 - FUDGE......
Edit TMyDerivedClass DFM text to remove above properties. Recompile package
and all is well
Then replaced 1 with this......
2 - BETTER (I think), but not understood
Add the above properties to TMyBaseClass....
Colour me confused.....
------------------------------------------------------------------------
--Donovan
Donovan J. Edye [www.edye.wattle.id.au]
Namadgi Systems, Delphi Developer
Web: www.namsys.com.au E-Mail: [EMAIL PROTECTED]
Voice: +61 2 6285-3460 Fax: +61 2 6285-3459
TVisualBasic = Class(None);
------------------------------------------------------------------------
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, 29 February 2000 14:39
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Why are the following properties not present in
TFrame??
OldCreateOrder: because there is no published onCreate or OnDestroy for a
TFrame. The Create and Destroy methods can be overriden however for create
and
destroy time activities. There is a reason why the onCreate and onDestroy
are
not published (which was given in a past issue of Visual Developer) and if
you
really really must know why I could probably look it up.
PixelsPerInch: Because the Frame is not a form and must always (as with any
other visual component) reside on a form where the PixelsPerInch property is
set. It would make no sense for a Form to have one value and a frame
residing on
that form to have a different value.
TextHeight: ??? This is a method of TCanvas, not a property of TForm (or any
other class). It is a method to return the height of the text that you pass
to
the TextHeight method.
Phil.
"Donovan J. Edye" <[EMAIL PROTECTED]> on 29/02/2000 11:27:35
Please respond to [EMAIL PROTECTED]
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
cc: (bcc: Phillip Middlemiss/NZ Forest Research Institute/NZ)
Subject: [DUG]: Why are the following properties not present in TFrame??
G'Day All
OldCreateOrder : boolean;
PixelsPerInch : Integer;
TextHeight : Integer;
Anyone??
------------------------------------------------------------------------
--Donovan
Donovan J. Edye [www.edye.wattle.id.au]
Namadgi Systems, Delphi Developer
Web: www.namsys.com.au E-Mail: [EMAIL PROTECTED]
Voice: +61 2 6285-3460 Fax: +61 2 6285-3459
TVisualBasic = Class(None);
------------------------------------------------------------------------
---------------------------------------------------------------------------
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
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz