Re: [ROOT] TGApplication and TRootGuiFactory

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Oct 28 2003 - 16:44:11 MET


Hi Thomas,

 TApplication calls TSystem::SetDisplay() too, indirectly.

Use TGApplication only for pure GUI apps, that don't use ROOT canvas
graphics.

Cheers, Fons.



On Tue, 2003-10-28 at 16:11, Thomas Bretz wrote:
> Hi,
> 
> is it your intention not to load the TRootGUiFactory plugin when using a
> TGApplication? If so, what is the reason?
> 
> If the reason is: Because TGApplication is for GUI application only, use
> TApplication instead - I have a different question: Why does TGApplication
> call SetDisplay (which is a 'helpfull tool' while TApplication doesn't?
> 
> I decided to use TGApplication instead of TApplication, because it calls
> SetDisplay, which automatically sets the display correctly if it is not
> set, but found out, that in this case I cannot open a TCanvas...
> 
> Best regards,
> Thomas.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET