iTools and WSET [message #46985] |
Thu, 12 January 2006 13:51 |
James Everton
Messages: 19 Registered: November 2005
|
Junior Member |
|
|
Hi everybody,
I've created an iTool that's inherited from iImage except it has an
extra panel on the right side that has a list of thumbnail images. When
I initialize the panel, I use WSET to move from draw widget to draw
widget and then use TV to output the images to the draw widget. That
all seems to work fine.
However, I would like to be able to go to the command prompt, WHILE my
iTool is open, and be able to use TV there and have an image pop up in
a new window. Right now, it uses the last draw widget that I wrote to
as the current window.
I tried calling WSET, 0 after I finished drawing the images to the draw
widgets, but that obnoxiously opened up a blank window on top of my
iTool.
I also attempted at setting the !D.WINDOW (which holds the current
window id) to -1, which indicates that there is no current window open,
so that when I call TV from the IDL prompt, it opens a new window.
Unfortunately, I was hit with the error that !D is a read-only
variable.
Can anyone think of a way that I can set !D.WINDOW to -1 in order to
use the IDL prompt how I would like?
Thanks a lot for your time.
Sincerely,
- James
|
|
|