comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Widget_window Problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Widget_window Problem [message #85150] Wed, 10 July 2013 03:38 Go to next message
Helder Marchetto is currently offline  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 #85151 is a reply to message #85150] Wed, 10 July 2013 08:09 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Hmm, works as is for me....

IDL> print, !VERSION
{ x86_64 darwin unix Mac OS X 8.2.2 Jan 23 2013 64 64}
Re: Widget_window Problem [message #85153 is a reply to message #85151] Wed, 10 July 2013 08:12 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Phillip Bitzer writes:

> Hmm, works as is for me....
>
> IDL> print, !VERSION
> { x86_64 darwin unix Mac OS X 8.2.2 Jan 23 2013 64 64}

Working for me in Windows, IDL 8.2.3.

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.")
Re: Widget_window Problem [message #85154 is a reply to message #85153] Wed, 10 July 2013 08:39 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi,
thanks for the counter-testing. This is the answer I feared the most, because I don't know where to start looking.
So, I removed all paths from my IDL. I closed and restarted IDL. And typed in the code above and get a window that is simply black.

Anybody any idea what to look for?

(... yes uninstall/reinstall would be an option... but I don't like it at the moment)

Thanks,
Helder

PS: The only NG files I have ever modified (or even looked at) are the ones that Mark Piper and Chris Torrence suggested replacing in an old post to avoid getting plots outside the plot region (axis). After that the out-of-region plotting was working again as one would want it to.
Re: Widget_window Problem [message #85155 is a reply to message #85154] Wed, 10 July 2013 08:41 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Helder writes:

> thanks for the counter-testing. This is the answer I feared the most, because I don't know where to start looking.
> So, I removed all paths from my IDL. I closed and restarted IDL. And typed in the code above and get a window that is simply black.
>
> Anybody any idea what to look for?

What happens if you resize the black 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.")
Re: Widget_window Problem [message #85156 is a reply to message #85154] Wed, 10 July 2013 08:43 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
Re: Widget_window Problem [message #85157 is a reply to message #85156] Wed, 10 July 2013 08:57 Go to previous messageGo to next message
Helder Marchetto is currently offline  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 #85158 is a reply to message #85157] Wed, 10 July 2013 09:07 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Helder writes:

> if I resize the window nothing happens: window stays black and the base gets bigger.
> Also RENDERER=1 does not change anything.

Well, I think you are screwed, then. :-)

Don't know. A Windows setting? Can't imagine what it would be.

Back to Coyote Graphics, I guess. They always work. :-)

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.")
Re: Widget_window Problem [message #85159 is a reply to message #85158] Wed, 10 July 2013 09:24 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
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
Re: Widget_window Problem [message #85185 is a reply to message #85159] Thu, 11 July 2013 11:17 Go to previous messageGo to next message
Helder Marchetto is currently offline  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 #85186 is a reply to message #85185] Thu, 11 July 2013 11:37 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
Re: Widget_window Problem [message #85187 is a reply to message #85186] Thu, 11 July 2013 11:47 Go to previous messageGo to next message
Helder Marchetto is currently offline  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 #85188 is a reply to message #85187] Thu, 11 July 2013 11:59 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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.")
Re: Widget_window Problem [message #85192 is a reply to message #85188] Thu, 11 July 2013 13:22 Go to previous messageGo to next message
Helder Marchetto is currently offline  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 Go to previous messageGo to next message
Helder Marchetto is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Curious Cluster Analysis Conundrum
Next Topic: ps_start error on mac

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 20:02:33 PDT 2025

Total time taken to generate the page: 0.71008 seconds