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