new GUI into existing application

Otto Schaile (Otto.Schaile@Physik.uni-muenchen.de)
Wed, 11 Mar 1998 17:18:01 +0100 (MET)


Dear Rooters,

first I would like to say you did an impressive job to integrate
such a thing in such a short time.

Could you give a hint (or a hyperlink) how to integrate the new gui
elements into an existing program:
typically one has:

TCanvas *c=new TCanvas(...)
TButton *b = new TButton(...)
b->Draw()
..
// more buttons
c->cd()
hist->Draw()

Now I would like to replace the TButtons by the new elements and "glue"
them (in addition to the one prvided by root: File, Option etc) onto the
menubar on top of the Canvas.

Also I would like to profit from the scroll bars to display a hist
with many channels.

Probably it is just a question how to replace the canvases of 1.03
by the new one provided in 2.00?

This would allow us to exploit (and test) the new features more quickly.

Cheers,
Otto

----------------------------------------------------------------------------
Otto Schaile Sektion Physik der LMU Muenchen
Phone: (+49 89)289 14070 Am Coulombwall 1, D-85748 Garching, Germany
FAX: (+49 89)289 14072 EMail: Otto.Schaile@Physik.Uni-Muenchen.DE