Re: [ROOT] Problem accessing gPad

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue May 30 2000 - 16:42:39 MEST


Hi Damir,
Please read the 2.23 release notes about gPad.
gPad is now a typedef in 2.23 and 2.24
Before using gPad, a real pad must exist.
Once a canvas has been instantiated, you can use gPad as before.

The change with gPad was necessary to support Threads in Root graphics.

Rene Brun

Damir Buskulic wrote:
> 
> Hi,
> 
> When accessing gPad in 2.24/05, there could be some problems. For
> example, having opened a canvas, doing "gPad->" and a <tab> gives :
> Problem determining class of gPad
> 
> Another example is that in one of our scripts, gPad->SetLogy(1) doesn't
> work anymore in the script, one has to do it ouside the script first.
> I'll try to make a short example available.
> 
> gPad seems to have changed from (class TCanvas*) to (const class
> TCanvas*const). Could that be the source of the problem ?
> 
> Cheers
> 
> Damir
> 
> --
> =====================================================================
> | Damir Buskulic                  | Universite de Savoie/LAPP       |
> |                                 | Chemin de Bellevue, B.P. 110    |
> | Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
> | e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
> =====================================================================
> mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET