Re: [ROOT] How to get kButton3Down?

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Fri Jul 12 2002 - 12:26:35 MEST


Currently button3 is never propagated, it is solely used for context
menus.

-- Fons



On Thu, 2002-07-11 at 13:01, Thomas Bretz wrote:
> Hi,
> 
> I have a class derived from TObject which is displayed in a Pad.
> 
> I get - as expected - a call to
> MyObject::ExecuteEvent(kButton1Down, px, py)
> when I click on the object.
> 
> Now I want to get kButton3Down, too. But this button displays the
> context menu. To get rid of the context menu I switched this off using
> SetBit(kNoContextMenu) which is working, but I still don't get the
> Button3 event.
> 
> How do I get it?
> 
> Thanks in advance,
> Thomas.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:59 MET