G'Day,
* What about the TMenu's OnChange event handler
This event is only in D4 and up I am lead to believe. Unfortunately I am
still stuck with D3 as the D4 IDE breaks if you create and destroy threads
too quickly. As an aside anyone know if this has been fixed for D5?
Also I meant to say that I am using TpopupMenu and not Tmenu. Its descended
from Tmenu, so there is no great drama....
--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: Wednesday, 8 September 1999 13:21
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Receiving a change notification....
Quoting "Donovan J. Edye" <[EMAIL PROTECTED]>:
> G'Day All,
>
> I have a component that takes a TMenu as a property and then assigns the
> menu items to a control that has 12 buttons on it that maps to the
function
> keys. I would like to know how I can get this component to respond should
a
> menu item be deleted, its caption changed etc. At the moment the only way
> to
> do this is to unassign the property that points to the TMenu and then
> reassign it. I would like to find a better way. Can anyone steer me in the
> right direction?
What about the TMenu's OnChange event handler? You can hook it into your own
procedure that runs your code, and then call anything that it was already
pointing to.
---------------------------------------------------------------------------
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