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

Home » Public Forums » archive » WShow Prayers Answered!
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
WShow Prayers Answered! [message #72842] Sun, 10 October 2010 08:24 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I've been praying for a LONG time. This is the first
time I can remember my prayers being answered!

This morning, like every morning, I typed "wshow"
to bring my IDL graphics window to the foreground,
and today it worked!!!

My goodness gracious! I have NO idea what changed.
I just know I am NEVER getting out of this IDL session!

I did have to re-start my computer last night after
an Adobe update. Coincidence!?

Cheers,

David

P.S. Have I mentioned lately I *love* the computer
business. :-)


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: WShow Prayers Answered! [message #72889 is a reply to message #72842] Tue, 12 October 2010 20:07 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Andy Green writes:

> This is scary. I'm running an evaluation licence of
> IDL 8.0 on my new Windows 7 machine for see if I should
> upgrade from my old reliable IDL 6 on XP. Low and
> behold one of the simplest commands fails to work.
> My code is riddled with wshows. What else is there
> that I haven't found yet? Please, somone, give me
> the confidence to spend $2.5K.

Let's just say if someone told me I'd have to spend
another year working with my old IDL 6.4 version of
IDL I'd probably say, "Please don't throw me in that
briar patch, Brer Fox!"

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: WShow Prayers Answered! [message #72893 is a reply to message #72842] Tue, 12 October 2010 18:19 Go to previous messageGo to next message
Giuseppe Papa is currently offline  Giuseppe Papa
Messages: 27
Registered: February 2010
Junior Member
This is scary. I'm running an evaluation licence of IDL 8.0 on my new Windows 7 machine for see if I should upgrade from my old reliable IDL 6 on XP. Low and behold one of the simplest commands fails to work. My code is riddled with wshows. What else is there that I haven't found yet? Please, somone, give me the confidence to spend $2.5K.

Andy Green
Re: WShow Prayers Answered! [message #74914 is a reply to message #72842] Wed, 09 February 2011 05:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Fabzou writes:

> I have this problem too.
>
> The following code would not produce anything on my screen neither:
>
> IDL> print, !VERSION
> { x86_64 linux unix linux 7.1.1 Aug 21 2009 64 64}
> IDL> cgDisplay, /FREE, XSIZE=500, YSIZE=500, /PIXMAP
> IDL> cgplot, LOADDATA(17)
> IDL> xwin = !D.WINDOW
> IDL> help, xwin
> XWIN LONG = 44
> IDL> wshow, xwin
>
> So what are the alternatives? Currently I am doing this:
>
> IDL> img = Transpose(tvrd(/TRUE), [1,2,0])
> IDL> WDELETE, xwin
> IDL> cgDisplay, /FREE, XSIZE=500, YSIZE=500
> IDL> cgImage, img
>
> But is there a better solution ?

Well, the xwin window won't appear on your display
because it doesn't *exist* on your display! You
have made it a pixmap, so it exists only in memory.
There is no physical manifestation of it, so you
will never be able to see it.

(Interestingly, one of the features of Catalyst Library
pixmap widgets that I always loved is the ability to
flip the "visible" property of these pixmaps so that
they immediately appear on the screen! This has saved
my patooie on numerous occasions when I was doing some
crazy smoke and mirrors thing in pixmaps and something
was going wrong. But this is only possible because these
pixmap widgets are actually draw widgets in unrealized
base widgets. Making the widget "visible" is simply
to realize the base widget holding the draw widget.)

Note that you don't have to use the XSIZE and YSIZE
keywords with cgDisplay, either. This (aside from
its obvious ability to create the same "size" window
in the Z and PS devices) is what makes it so much more
convenient than the WINDOW command:

IDL> cgDisplay, 400, 500, /Free

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: WShow Prayers Answered!
Next Topic: Re: A Plea for Fair Behavior

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

Current Time: Wed Oct 08 11:44:37 PDT 2025

Total time taken to generate the page: 0.00656 seconds