|
Hi Donovan
You should be able to create an inherited form without using
"New"
One thing you can try is open the inherited form and (right
click) View as text.
Make sure the form starts with :
inherited NewForm : TMyBaseForm
not
object NewForm : TMyBaseForm
Save it and see if "Revert to inherited" is now
enabled.
Todd.
----- Original Message -----
Sent: Thursday, 6 March 2003 10:43
Subject: [DUG]: [Q] Visual Form
Inheritance [VFI]
G'Day,
I have been using
visual form inheritance for a project and have a couple of
questions.
1. Why do I have to do a New... and select the base form
from the "MyProject" tab?
If I have a form declared as TMyBaseForm and
I do a New Form, why can't I just change the inhertited class in the new
unit? ie
TMyNewForm = class(TForm) becomes TMyNewForm =
class(TMyBaseForm). If I do this by hand then "Revert To Inherited" is not
available. So what else is Delphi doing behind the scenes?
2. A
TImageList on the base form does not update on the descendant child forms
when new images are added. Why? Are certain controls not VFI
supported?
3. Using DevExpress Bars for my toolbar does not reflect on
the descendant children. How are customised toolbars handled with VFI? Do
children have to drag their buttons on?
What other gotchas are there
with VFI? Any comments, references etc. appreciated.
--
Donovan
----------------------------------------------------------------------
Donovan J. Edye [www.edye.wattle.id.au]
Namadgi Systems [www.namsys.com.au]
Voice: +61 2 6285-3460 Fax: +61 2 6285-3459 TVisualBasic =
Class(None); Heard just before the 'Big Bang': "...Uh Oh...."
----------------------------------------------------------------------
GXExplorer [http://www.gxexplorer.org]
Freeware Windows Explorer replacement. Also includes freeware delphi
windows explorer components.
----------------------------------------------------------------------
|