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

Home » Public Forums » archive » widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Widget [message #39433 is a reply to message #22367] Tue, 18 May 2004 16:36 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Anand writes:

> Can anyone help me out with IDL widgets. I created a widget to
> display the image and from there I opened one more image to show a
> region in that image in a different widget. After I close the new
> widget my old widget does not seem to be my current graphic window.
> So when I try to perform some mouse commands it by default open a new
> IDL window. Can some one tell me how do I make my old widget the
> current graphic window after I close the current widget. I used
> widget_control, ev.top,/destroy, to detroy the top widget.

Oh, dear. :-(

You might have a look at ZIMAGE. It might even do exactly
what you are trying to do. You *definitely* need to know
what window is the current graphics window (the one you
will be drawing into) in a widget program. You do it
by doing a WSET to the window index number. This number
is the *value* of the draw widget:

Widget_Control, drawWidgetID, Get_Value=wid
WSet, wid

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widget
Next Topic: Re: Non Nom on the Memory

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

Current Time: Fri Oct 10 09:18:18 PDT 2025

Total time taken to generate the page: 0.24339 seconds