Re: [ROOT] Fw: is there an SIMPLE way to switch of user interaction in TCAnvas ??

From: Valeri Fine (fine@bnl.gov)
Date: Fri Feb 22 2002 - 00:33:47 MET


With this version
http://www.usatlas.bnl.gov/~fine/QtRootDownload.html

one can use 
http://doc.trolltech.com/3.0/qwidget.html#setMouseTracking
method to disable mouse tracking and this way lock the way one
can interact with TCanvas. (One needs Qt SDK of course to use it)
See: http://www.usatlas.bnl.gov/~fine/QtRoot/QtRoot.html#qt )

I'd like to mention the Qt version has some extra protection, namely
TCanvas catches the mouse events only if the TCanvas has been clicked.
and keeps the keyboard focus. May be this is just enough.

Of course a dedicated bit for the TCanvas class object may help too.

-----
Dr.Valeri Fine
STAR/US Atlas                                    E-mail: fine@bnl.gov
Brookhaven National Lab                   Phone: +1 631 344 7806
Upton, NY 11973-5000                       FAX:     +1 631 344 4206
USA



  ----- Original Message ----- 
  From: Joe Robe 
  To: roottalk@pcroot.cern.ch 
  Sent: Wednesday, February 20, 2002 11:13 AM
  Subject: [ROOT] Fw: is there an SIMPLE way to switch of user interaction in TCAnvas ??





  Hi Rooters,

  I did implement some custom ExecuteEvent on a TGraph subclass. The problem is, that this does not work (some graph info will be shown in a TLabel on mouse down over a Graph) since TCAnvas allows by default user interaction and dragging into a graph area with mouse down moves the TFrame.

  I could now subclass all objects in TCanvas and override ExecuteEvent, but is there not a simple way to switch all user interaction off ?

  Joe



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