Re: [ROOT] gui help

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jan 04 2002 - 10:46:27 MET


Bill,

I believe that we have many examples of this kind in the standard
tutorials.
To draw one line in a canvas, do, eg
  TLine *line = new TLine(.1,.1,.9,.9);
  line->Draw();

Rene Brun

On Thu, 3 Jan 2002, William Hanlon wrote:

> Hi,
> 
> I would like to use the ROOT gui classes to write some display
> programs. I would like to do something very simple which I can't
> figure out from looking at the examples available. Does someone have
> example code that just puts a canvas up on the screen and draws a
> simple object (like a line) without all kinds of buttons and other
> things. It would make it easier to understand how to code using the
> gui classes if there were a very simple example in addition to all the
> more complicated ones already available.
> 
> Thanks,
> Bill
> 
> -- 
> William Hanlon                       http://www.physics.rutgers.edu/~whanlon
> Rutgers University                   pgp fingerprint:85 68 43 55 9A 83 44 00
> Dept. of Physics and Astronomy                       CE 19 C0 B0 D9 DE D6 52
> 



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