Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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/
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