[DUG] Arrgh Form Hell

Alister Christie alister at salespartner.co.nz
Thu May 17 15:06:56 NZST 2007


In the .dfm file you may to change (right click on the form and select 
view as text)
object Form1: TForm1
to
inherited Form1: TForm1

Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington 



Robert martin wrote:
> Hi All
>
> I am taking a beating with form inheritance !
>
> I have two master template forms T1 and T2
>
> T2 inherits from T1
>
> All forms in the app inherit from either T1 or T2.
>
> I wanted to add a property to T1.  However this never showed in the 
> object inspector.  After reading I discovered I needed to add a T0 
> which only defined properties and have T1 inherit from it.  T0 needed 
> to be registed in a package.
>
> This worked in the T1 now shows the property as do all forms that 
> inherit from it, apart from T2 !!!!  Does anyone have any suggestions?
>


More information about the Delphi mailing list