[ROOT] TEmbeddedCanvas

From: Thomas Bretz (tbretz@uni-sw.gwdg.de)
Date: Thu May 31 2001 - 14:57:25 MEST


Hi Rooters,

I derived a class from TEmbeddedCanvas. The embedded canvas is displayed
in a TGMainFrame.

The TEmbeddedCanvas itself shows up (border, background, ...) but I'm
unable to draw something into it. Everything I tried to display
something in it (TArc, TH1F, ...) failed. What am I doing wrong?

At the end I would like to have something like the following in its
constructor:

-----------------
GetCanvas()->cd();
GetCanvas->Range(-100, -100, 100, 100);

TArc *arc=new TArc(0, 0, 10);
arc->Draw();
GetCanvas()->Modified();
GetCanvas()->Update();
------------------

Regards,
Thomas.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:47 MET