Re: TGMainFrame and Batch mode

From: Thomas Bretz <tbretz_at_astro.uni-wuerzburg.de>
Date: Fri, 14 Jan 2005 12:51:13 +0100


Hi Fons,

>   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.

No. I get this warnings ONLY in batch mode... Maybe the function loading the icons return True, but what about the elements using/requesting the pixtures?

Thomas.

> 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.

>
> Received on Fri Jan 14 2005 - 12:51:29 MET

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