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

Home » Public Forums » archive » Re: Multiple Widget_draws
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: Multiple Widget_draws [message #48233] Wed, 05 April 2006 08:35
mchinand is currently offline  mchinand
Messages: 66
Registered: September 1996
Member
In article <1144250972.381807.44770@v46g2000cwv.googlegroups.com>,
<rchughes@gmail.com> wrote:
> Hey All,
>
> Does anyone know how to switch between different Draw widgets? I only
> need to access one at at time.
>
> I've tried saving and restoring the !X, !Y and !P variables but I think
> it's more than that.
>
> Thanks,
> Ryan.
>

You need to get the value of the window ID of the draw widget you want to use.


widget_control, w_draw1, get_value=winID1

then switch to that window:

wset, winID1


--Mike

--
Michael Chinander
m-chinander@uchicago.edu
Department of Radiology
University of Chicago
Re: Multiple Widget_draws [message #48234 is a reply to message #48233] Wed, 05 April 2006 08:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
rchughes@gmail.com writes:

> Does anyone know how to switch between different Draw widgets? I only
> need to access one at at time.
>
> I've tried saving and restoring the !X, !Y and !P variables but I think
> it's more than that.

Well, the window index number would be handy. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Multiple Widget_draws
Next Topic: IDL w/ 12-bit grayscale?

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

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

Total time taken to generate the page: 0.02692 seconds