Re: Multiple Widget_draws [message #48233] |
Wed, 05 April 2006 08:35 |
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  |
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/
|
|
|