Luke
3 ways of doing this kind of thing
1/ Some of those methods have 'ancilliary' methods which can be overridden
like 'DoShow'
2/ Overload Show with a different signiture ie Show(string: Caption) you can
still call inherited Show, this will work if
you are calling Show on the Child Class
3/ You can override the event handler code (since most of these methods
trigger events)
HTH
Neven
----- Original Message -----
From: Luke Pascoe <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Tuesday, 8 May 2001 10:58
Subject: [DUG]: Form inheritance
> I have an ancestor form which is inherited from TForm.
> I have a decendant form which inherits from the ancestor form.
>
> Every method I try to override in the decendant (such as Create or Show)
> gives me the error "Cannot override a static method".
>
> If I use Reintroduce it works for Create, but not for Show. The unit
> compiles but the Show procedure doesn't get compiled with it.
>
> Has anyone come accross this before?
>
> ========================================================
> Luke Pascoe Delphi Programmer
> enSynergy Consulting LTD
>
> [EMAIL PROTECTED] +64-9-3551593 fax +64-9-3551590
> Level 4, 10-12 Federal St, Auckland, New Zealand
> PO Box 32521, Devonport, Auckland 1330, New Zealand
>
> ================== I.H.T.F.P. ==========================
> --------------------------------------------------------------------------
-
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"