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

Home » Public Forums » archive » Re: about WSET
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: about WSET [message #54767 is a reply to message #54764] Tue, 03 July 2007 21:13 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
airy.jiang@gmail.com writes:

> 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?~_~

Unfortunately, I think the answer is "not much." I spent
the better part of a half hour this afternoon fooling
around with this, and I couldn't come up with a thing.
From the deafening silence, I'm afraid others are striking
out, too.

It probably goes against some GUI principle to allow
anyone other than the user to control the mouse, but
I guess I could think of one or two reasons why you
might have legitimate reason to want to do so. In any
case, unless I've missed something, I don't think it is
possible in object graphics. (Of course, you could put
an arrow or something inside a graphics windows and move
THAT around, but that isn't the cursor.)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: format string with many many quotation marks
Next Topic: Re: format string with many many quotation marks

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

Current Time: Fri Oct 10 13:34:13 PDT 2025

Total time taken to generate the page: 1.35704 seconds