There seems to be some way as there are a few components out there that
can do this. But you need to buy the whole vcl library they sell just to
get the single functionality.

The other approach would be for me to get a hack to find when the popup
has closed on the attached treeview component, maybe the OnActivate for
the treeview could do the same thing, if the deactivate event is fired.

The thing I'm trying to do is to have a popup on a treeview with actions
changing depending on the selected item. I could just change the
selected item with the Onclick event, but not as nice really. 

Regards

Jason Coley
Manawatu Software Solutions
email: [EMAIL PROTECTED]
web: http://www.software-solutions.co.nz



-----Original Message-----
From: Chris Milham [mailto:cmilham@;medtech-software.com] 
Sent: Monday, 21 October 2002 4:22 p.m.
To: Multiple recipients of list delphi
Subject: RE: [DUG]: How to add an OnClose event to a TPopup menu?

My short answer, and please correct me if I'm wrong, is that it's not
possible.
I had so may fun & games a while back trying to do the same thing.
It appears to be a limitation of the Win API menus that Delphi wraps.
I had to do some horrible hack to simulate this but can't remember what,
or where it is now.
Will have a quick dig around for it now.

Chris

-----Original Message-----
From: Jason Coley [mailto:Jason@;software-solutions.co.nz]
Sent: Monday, 21 October 2002 4:16 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: How to add an OnClose event to a TPopup menu?


Does anyone know how to add an OnClose event to a TPopup menu?

Regards
Jason
------------------------------------------------------------------------
---
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    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"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to