Thanks Mic.  I thought I may have to go down that route.  I should be able
to work out how to do that.


-----Original Message-----
From: [] On Behalf
Of Mick Arundell
Sent: Saturday, 25 July 2009 12:26 a.m.
Subject: re: right-click a menu item

I think that you need to intercept the windows message
wm_mousedown or wm_mouse_up

You can easily inherit an existing control, because only controls can 
receive windows messages, intercept the message in your inherited 
control and then raise an event to handle right mouse ...
Later you put your inherited control on a form and will find that your 
new events are available. From experience I would suggest that you 
supply X, Y co-ordinates and selected object, if any, in your right 
click handler


Delphi mailing list ->

Delphi mailing list ->

Reply via email to