about WSET [message #54768] |
Tue, 03 July 2007 20:48 |
airy.jiang
Messages: 37 Registered: May 2007
|
Member |
|
|
Last day I wrote a question to ask how can I set the mouse to the
position I want.David showed me a nice way that using the TVCRS.I
tried it,and found that the TVCRS indeed changed position of the
mouse,but not the exactly position I wanted.I did some test,and I
found the reason of wrong position is because my program used the
object-oriented graphics mode.The TVCRS will set the mouse of the
widget which id is reading from the system variable !D.Window.I
checked that variable,found that the widget id which restored in the !
D.Window is not the id of the draw widget in my program.So it made a
wrong position of the mouse.Then I want to set the draw widget of my
program to be the active widget which can be useful to the TVCRS,I
used the WSET method seting the draw widget,but the IDL reported a
error message :"WSET:Window is closed and unavailable."
Oh,what can I do?~_~
|
|
|