Capturing right click


Is there any way to get notified when right-click happens on, for example, histogram? I found out, that I cannot get any event even if I set SetBit(ROOT.kNoContextMenu). In general I would like to extend or replace the right-click menu with calls to external functions. Thus inheriting a custom class from histogram would be an overkill.

See for example tutorials/gui/customTH1Fmenu.C and tutorials/gui/customContextMenu.C. Or you can also connect to the TCanvas::ProcessedEvent(Int_t,Int_t,Int_t,TObject*) signal.

Cheers, Bertrand.