[ROOT] Scrollbars with TRootEmbeddedCanvas

From: Gora Mohanty (gora@solar2.ucr.edu)
Date: Wed Jul 10 2002 - 18:53:34 MEST


Hi,
  I just cannot seem to get TRootEmbeddedCanvas to give me scrollbars.
The following produces scrollbars in an interactive ROOT session:
  TCanvas *mycanvas = new TCanvas("a", "a", 200, 200 );
  mycanvas->SetCanvasSize(500,500);

However, when I do what I thought would be an equivalent in compiled
code, viz., after creating a 200x200 TRootEmbeddedCanvas*, 'ec,' 
  TCanvas *mycanvas = ec->GetCanvas();
  mycanvas->SetCanvasSize(500,500);
nothing happens, i.e., scrollbars are not produced.
  Thanks in advance for any help. I am using ROOT v3.03.06, compiled
with gcc 3.0.1 on an x86 Linux box.

Regards,
Gora



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