Re: TGMainFrame and Batch mode

From: Fons Rademakers <Fons.Rademakers_at_cern.ch>
Date: Fri, 14 Jan 2005 10:53:12 +0100


Hi Thomas,

   you can always suppress globally all warnings and errors using the gErrorIgnoreLevel. However in this case you just should make sure the icons are there since otherwise the GUI will not be ok. In batch mode the function that loads the picture always returns success so there you don't get the warning.

Cheers, Fons.

Thomas Bretz wrote:
> Hi,
>
> do you remember my trouble creating a TGMainFrame instance in batch mode
> in some root versions? I have tested it now with 4.02/00 and it seems to
> work. But creating an instance of my class I get
> Error in <TGComboBox::TGComboBox>: arrow_down.xpm not found
> Error in <TGVScrollBar::TGHScrollBar>: arrow_*.xpm not found
> Warning: Requested picture 'marslogo.xpm' not found... ignored.
> Please copy marslogo.xpm to $HOME or $HOME/icons or add
> Unix.*.Gui.IconPath: ~/Path/To/The/Picture
> to [$HOME/].rootrc.
>
> Which I don't get in batch mode. Do you have an idea what the
> diffrerence might be and how to supress these warnings?
>
> Thanks,
> Thomas.

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers_at_cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480
Received on Fri Jan 14 2005 - 10:53:20 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:04 MET