Widget_window Problem [message #85150] |
Wed, 10 July 2013 03:38  |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
Hi,
I was just trying to use widget window in a larger widget program and could not get anything in the windget_window to work. So I tried the basic example from the IDL help:
wBase = WIDGET_BASE(/COLUMN)
wDraw = WIDGET_WINDOW(wBase, X_SCROLL_SIZE=400, Y_SCROLL_SIZE=400)
WIDGET_CONTROL, wBase, /REALIZE
; Retrieve the newly-created Window object.
WIDGET_CONTROL, wDraw, GET_VALUE=oWin
; Make sure this is the current window
oWin.Select
p = PLOT(/TEST, /CURRENT, /FILL_BACKGROUND)
This results in a black window without anything in it... empty.
I restarted IDL, but no improvement.
By removing the keyword CURRENT I get a normal plot window. So the function plot is working.
Am I the only one with this type of problem?
print, !version
{ x86_64 Win32 Windows Microsoft Windows 8.2.3 May 3 2013 64 64}
Cheers,
Helder
|
|
|
|
|
|
|
|
Re: Widget_window Problem [message #85157 is a reply to message #85156] |
Wed, 10 July 2013 08:57   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Wednesday, July 10, 2013 5:43:45 PM UTC+2, David Fanning wrote:
> Helder writes:
>
>
>
>> Anybody any idea what to look for?
>
>
>
> What happens if you set RENDERER=1 on Widget_Window?
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Hi,
if I resize the window nothing happens: window stays black and the base gets bigger.
Also RENDERER=1 does not change anything.
I also tried the debug option in PLOT(/DEBUG) without anything showing up (not sure that this is the way to turn on debuggin... p = PLOT(/TEST, /CURRENT, /FILL_BACKGROUND, DEBUG=1)
Cheers,
Helder
|
|
|
|
|
Re: Widget_window Problem [message #85185 is a reply to message #85159] |
Thu, 11 July 2013 11:17   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Wednesday, July 10, 2013 6:24:19 PM UTC+2, Helder wrote:
> Yeah, I already switched back after a very short try. However, I don't like giving up that quickly. I will try to find out, but it is like fighting with eyes closed against a giant.
>
> Cheers,
>
> Helder
Just for the sake of it.
I tried the same code on my laptop and got the thing running. Apart from this obvious difference in results, on my laptop I get the line
% Loaded DLM: XML.
This I don't get on my desktop.
Any idea how I can recover this? idl_xml.dll? What to do with it?
Cheers,
Helder
|
|
|
|
Re: Widget_window Problem [message #85187 is a reply to message #85186] |
Thu, 11 July 2013 11:47   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Thursday, July 11, 2013 8:37:37 PM UTC+2, David Fanning wrote:
> Helder writes:
>
>
>
>> I tried the same code on my laptop and got the thing running. Apart from this obvious difference in results, on my laptop I get the line
>
>> % Loaded DLM: XML.
>
>> This I don't get on my desktop.
>
>>
>
>> Any idea how I can recover this? idl_xml.dll? What to do with it?
>
>
>
> Have you confirmed this is missing on your desktop?
>
>
>
> Help, /DLM
>
>
>
> I find mine here:
>
>
>
> C:\Program Files\Exelis\IDL82\bin\bin.x86_64\idl_xml.dll
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
it says:
** XML - IDL XML SAX/DOM Parser support (not loaded)
Version: 2.6.0, Build Date: MAY 3 2013, Source: Exelis Visual Information Solutions, Inc.
Path: C:\Program Files\Exelis\IDL82\bin\bin.x86_64\idl_xml.dll
I didn't know the "help, /dlm"...
So, I loaded this XML and got this after the help, /dlm:
** XML - IDL XML SAX/DOM Parser support (loaded)
Version: 2.6.0, Build Date: MAY 3 2013, Source: Exelis Visual Information Solutions, Inc.
Path: C:\Program Files\Exelis\IDL82\bin\bin.x86_64\idl_xml.dll
Still the plot() in the widget_window function does not work...
Cheers,
Helder
|
|
|
|
Re: Widget_window Problem [message #85192 is a reply to message #85188] |
Thu, 11 July 2013 13:22   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Thursday, July 11, 2013 8:59:25 PM UTC+2, David Fanning wrote:
> Helder writes:
>
>
>
>
>
>> Still the plot() in the widget_window function does not work...
>
>
>
> Guess I'm not surprised, it seemed like a long shot. :-)
>
>
>
> Here is another. Can you get other widget programs to work when you have
>
> the widget_window open (and not working). For example, can you run
>
> XCOLORS in this situation and find you can change color tables?
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Yes, XCOLORS works when I have widget_window open. Actually everything works... of course this is the first time I was trying the widget_window out.
Thanks for the try.
Cheers,
Helder
|
|
|
Re: Widget_window Problem [message #85243 is a reply to message #85192] |
Thu, 18 July 2013 07:45   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Thursday, July 11, 2013 10:22:44 PM UTC+2, Helder wrote:
> On Thursday, July 11, 2013 8:59:25 PM UTC+2, David Fanning wrote:
>
>> Helder writes:
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>> Still the plot() in the widget_window function does not work...
>
>>
>
>>
>
>>
>
>> Guess I'm not surprised, it seemed like a long shot. :-)
>
>>
>
>>
>
>>
>
>> Here is another. Can you get other widget programs to work when you have
>
>>
>
>> the widget_window open (and not working). For example, can you run
>
>>
>
>> XCOLORS in this situation and find you can change color tables?
>
>>
>
>>
>
>>
>
>> Cheers,
>
>>
>
>>
>
>>
>
>> David
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> --
>
>>
>
>> David Fanning, Ph.D.
>
>>
>
>> Fanning Software Consulting, Inc.
>
>>
>
>> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
>>
>
>> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
>
>
>
> Yes, XCOLORS works when I have widget_window open. Actually everything works... of course this is the first time I was trying the widget_window out.
>
> Thanks for the try.
>
> Cheers,
>
> Helder
Just for the records... renaming (=erasing) the .idl folder in my user directory did the job. IDL then makes a new .idl folder and everything is working as expected.
What I cannot say at the moment is why all of this happens and how to test it.
Well, thanks to Exelis support for the solution
Cheers,
Helder
|
|
|
Re: Widget_window Problem [message #85245 is a reply to message #85243] |
Thu, 18 July 2013 08:00  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Helder writes:
> Just for the records... renaming (=erasing) the .idl folder in my user directory did the job. IDL then makes a new .idl folder and everything is working as expected.
>
> What I cannot say at the moment is why all of this happens and how to test it.
I think this is becoming a Best Practices solution for most really weird
problems. Better to spend hours putting your IDL environment back
together than tens of hours chasing your tail. :-)
Maybe we should think about saving a .idl file once we have it working
to our liking, so restoring it becomes easier.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|