Re: [ROOT]: Gui, TCanvas, and mouse events

From: Brett Viren (bv@bnl.gov)
Date: Wed Jun 19 2002 - 20:05:47 MEST


This looks very nice!  It should definitely be included in the ROOT
distribution, I think.

BTW, after unpacking, the file permissions are not right (at least on
Linux).  I needed to do:

	cd RootShower/
	chmod -R +r *

Regards,
-Brett.

Rene Brun writes:
 > Hi Mathieu,
 > 
 > I agree with you that the ROOT GUI has now reached an impressive
 > level of functionality, but HELAS, there is no documentation.
 > I hope that we will be able to document it in the near future.
 > Most people starting with the Root GUI have used the Guitest
 > example. This shows the use of the basic widgets only.
 > 
 > Recently, Bertrand Bellenot has developed a very nice and still
 > simple application that is a good illustration of what one can do with
 > the Root GUI. 
 > 
 > I have put a copy of his program at
 >    ftp://root.cern.ch/root/RootShower.tar.gz
 > 
 > So far, it includes two Makefiles (Linux and Windows).
 > To install it, eg,
 >   make -f Makefile.linux
 > to run the program invoke RootShower and use the various HELP buttons
 > to see the different possibilities. This example includes the
 > functionality you want to see in your program.
 > 
 > If people have comments about this nice demo, you can address them
 > to rootdev@root.cern.ch and also to Bertrand.Bellenot@alcan.com
 > 
 > Rene Brun
 > 
 > On Wed, 19 Jun 2002, Mathieu Gisselbrecht wrote:
 > 
 > > Hi,
 > > 
 > > I'm using ROOT for about 2 years in order to develop multi-coincidence
 > > experiments based on Synhrotron Radiation in molecular physics. A part
 > > of the work is to write a User-Friendly-Interface (which is by essence
 > > almost impossible....). So, I used a lot the GUI demo and the root talk
 > > to get answer to my questions... I really thanks everyone for the
 > > impressive work done !!!
 > > 
 > > However for about 1 month, I can't find a way to get access to mouse
 > > events in a TCanvas embedded in a TGTransientFrame, the so-called
 > > TRootEmbeddedCanvas. My aim is to give the (x,y) value of the mouse in
 > > an histogram (for instance to know the intensity and the position of a
 > > peak just by moving the mouse). With CINT, it is super easy: 
 > > 	just create a TCanvas, and validate in the "Options" menu the "Event
 > > Status"
 > > ---------> How can I mange the same thing with an embedded canvas ?
 > > 
 > > By the way, each time I'm going into more sophisticated concept: 
 > > - default parameters for drawing objects (e.g. histogram, text....)
 > > - events control (keyboard, mouse)
 > > I get stuck in the nowhere land : it looks like there are so many
 > > functions to call, and without a complete set of examples, it's not so
 > > easy... Is the latest User Guide deals with those things ? I only have
 > > the v0.7.2. which is a good start but not enough to understand the
 > > complexity of ROOT.
 > > 
 > > Thanks in advance,
 > > 
 > > Best regard,
 > > 
 > > M. Gisselbrecht
 > > 
 > 



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