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

Home » Public Forums » archive » Re: Hiding the Zoom in ENVI
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
Re: Hiding the Zoom in ENVI [message #60397] Tue, 13 May 2008 13:53
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mort Canty writes:

> Well, the documentation says
>
> "The WSHOW procedure exposes or hides the designated window."
>
> and in the case of my window 12 example, it indeed "vanishes".

Well, I think "vanishes" in the sense my wife usually
means it, in that she doesn't see it anymore because
it's gone behind some other window. I would say that it
is "hidden," as in a game of Hide and Seek.

> The reason I want to do this, is that I want to copy the content of the
> image window to a pixmap _without_ the little red square that marks the
> current position of the scroll window. Maybe that won't work anyway.

Oh, well, this is the right solution, then, to the wrong
problem. In any case, I don't think it is likely to help you
solve this one.

> It's getting late in Old Germany ...

I guess. I'd look at this fresh in the morning. I'll
bet it looks different then. ;-)

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: Hiding the Zoom in ENVI [message #60399 is a reply to message #60397] Tue, 13 May 2008 13:15 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Mort Canty schrieb:

> that marks the
> current position of the scroll window.

oops, I meant zoom window.
Re: Hiding the Zoom in ENVI [message #60400 is a reply to message #60399] Tue, 13 May 2008 13:10 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
David Fanning schrieb:

> Well, "vanish" is not what is meant by "hide", I don't
> think. When the documentation says "show", they mean
> bring the window to the front of the window stack. When
> they say "hide", they mean move it down in the window
> stack. It doesn't "vanish".
>
> Maybe you want to make an icon of the window. That will
> take it off the display and move it to the application bar
> at the bottom (usually) of the display. Set the ICONIFY
> keyword to WSHOW.
>
> Cheers,
>
> David

Well, the documentation says

"The WSHOW procedure exposes or hides the designated window."

and in the case of my window 12 example, it indeed "vanishes". Anyway,
here's the context:

PRO VIEWSEG_RUN, event
widget_control, event.top, get_uvalue=dn
envi_disp_query, dn, fid=fid, w1=w1, color=color
wshow, w1[1], 0 ; nothing happens
...
...

I call this from the ENVI display menu, so dn is is the number
corresponding to the display group, consisting of the image window (with
the display menu at the top), the zoom window (which I want to hide) and
the scroll window.

The reason I want to do this, is that I want to copy the content of the
image window to a pixmap _without_ the little red square that marks the
current position of the scroll window. Maybe that won't work anyway.
It's getting late in Old Germany ...

Cheers

Mort
Re: Hiding the Zoom in ENVI [message #60401 is a reply to message #60400] Tue, 13 May 2008 11:56 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mort Canty writes:

> When I say
>
> ENVI> window, 12
>
> and then
>
> ENVI> wshow,12,0
>
> then window 12 vanishes. But in the case of the Zoom window, it just
> sits there, defying me.

Well, "vanish" is not what is meant by "hide", I don't
think. When the documentation says "show", they mean
bring the window to the front of the window stack. When
they say "hide", they mean move it down in the window
stack. It doesn't "vanish".

Maybe you want to make an icon of the window. That will
take it off the display and move it to the application bar
at the bottom (usually) of the display. Set the ICONIFY
keyword to WSHOW.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Hiding the Zoom in ENVI [message #60402 is a reply to message #60401] Tue, 13 May 2008 11:39 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
David Fanning schrieb:
> Mort Canty writes:
>
>> I'm trying to hide the zoom window in an ENVI display group
>> programmatically (winXP,ENVI4.4):
>>
>> envi_disp_query, dn, w1=w1
>> wshow, w1[1], 0
>>
>> Can someone tell me why this doesn't work?
>
> It works on my LINUX machine. What do you think
> "hide" means in this case? I ask because I had to
> work pretty hard to set up a situation where I
> could tell whether this was working or not. I'm
> not sure how often that would occur in practice.
>
> Cheers,
>
> David

When I say

ENVI> window, 12

and then

ENVI> wshow,12,0

then window 12 vanishes. But in the case of the Zoom window, it just
sits there, defying me.

Mort
Re: Hiding the Zoom in ENVI [message #60403 is a reply to message #60402] Tue, 13 May 2008 10:38 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mort Canty writes:

> I'm trying to hide the zoom window in an ENVI display group
> programmatically (winXP,ENVI4.4):
>
> envi_disp_query, dn, w1=w1
> wshow, w1[1], 0
>
> Can someone tell me why this doesn't work?

It works on my LINUX machine. What do you think
"hide" means in this case? I ask because I had to
work pretty hard to set up a situation where I
could tell whether this was working or not. I'm
not sure how often that would occur in practice.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.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: How to specify xyz-coordinates of the grid for ivolume
Next Topic: Questions on the subject of Interpolation

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

Current Time: Wed Oct 08 15:16:25 PDT 2025

Total time taken to generate the page: 0.00573 seconds