Thanks Nello

You're quite right.  I left out the override directive in the destructor's declaration 
and ignored the compiler's warning.

Bob
>
>From: "Nello Sestini" <[EMAIL PROTECTED]>
>Date: Thu, 3 Aug 2000 04:14:54 +0700
>To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
>Subject: Re: [DUG]:  Deleting components at design time
>
>I think you are mistaken about the dtor not being called at design time.
>
>I've attached a simple component that has Destroy overridden.
>It is called at design time.   (I get the "Being Destroyed" message
>at designtime if i delete the component from a form - or close the
>form etc)
>
>ns
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
>Date: 03 August 2000 03:26
>Subject: [DUG]: Deleting components at design time
>
>
>Can anyone tell me how I can trap deleting a component from a form (from
>within the component) at design time.  It doesn't seem to call the
>destructor.
>
>
>Bob Osborn
>
>
>
>---------------------------------------------------------------------------
>    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                  Website: <a 
>href="http://www.delphi.org.nz">http://www.delphi.org.nz</a>
>
>

Bevel1.pas

Reply via email to