Thanks Mic. I thought I may have to go down that route. I should be able to work out how to do that.
Cheers. -----Original Message----- From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf Of Mick Arundell Sent: Saturday, 25 July 2009 12:26 a.m. To: email@example.com 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 mick _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> Delphi@elists.org http://lists.elists.org/cgi-bin/mailman/listinfo/delphi