Re: Scrollable Canvas?

From: Otto Schaile (Otto.Schaile@Physik.uni-muenchen.de)
Date: Wed Oct 20 1999 - 14:35:16 MEST


On Wed, 20 Oct 1999 KOSU_FOKIN@garbo.lucas.lu.se wrote:

> One more question about TCanvas. Is there a way to get
> "scrollable" Canvas?

Hi Anton
try the following macro, is this what you want?
Cheers
Otto
------
{
   Int_t xw = 400;
   Int_t yw = 400;
  
   TCanvas * c = new TCanvas("c","c", 500,500,xw,yw);
   Int_t newxw = 1000;
   Int_t newyw = 2000;
   c->SetCanvasSize(newxw, newyw); // add scrollbars if needed
   c->Update();
}
----------------------------------------------------------------------------
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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:41 MET