Re: [ROOT] Interactive canvas

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Oct 10 2003 - 23:30:53 MEST


It is not clear if your question is related to basic graphics in the pad
or to the GUI.

In attachement, you will find a script drawing triangles in a canvas
and showing some simple action when you click on one triangle.

Rene Brun

On 
Fri, 10 Oct 2003, munar wrote:

> 
> Dear Rooters..
> 
> I need to write a GUI for a detector. I need to create a canvas with an
> schematic representation of the detector (let say a collection of
> triangles) and with the mouse able to click on each triangle and pop
> another canvas with menus and so on.. I need to be a canvas so I can
> change the color of the triangles for example..
> 
> so far I have found something similar using TGImageMap, but I need to be a
> canvas so I can change its aspect in a interactive way... some one can
> send me a pair of lines of code with an example...??
> 
> cheers,
> 
> ###################################################
> Antoni Munar Ara
> Department of Physics and Astronomy
> David Rittenhouse Laboratory
> 209 South 33-rd Street
> Philadelphia, PA (USA)
> 19104-6396
> 





This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET