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

Home » Public Forums » archive » Re: cursor return in graphics window
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: cursor return in graphics window [message #20858 is a reply to message #20851] Thu, 27 July 2000 00:00 Go to previous messageGo to previous message
Steve Ready is currently offline  Steve Ready
Messages: 6
Registered: July 2000
Junior Member
"Eric Williams" <eric@astro.wesleyan.edu> wrote in message
news:eric-81409F.11542827072000@news.wesleyan.edu...
> Hi all,
>
> I am trying to use cursor to return the coordinates of a mouse click in
> a graphics window. In fact I am trying to do it twice, back to back, and
> am running in to the problem that one mouse click is being read by both
> cursor calls. I want to select two points with the mouse in the graphics
> window but since one mouse click is being read by both cursor calls I am
> getting the same coordinates for each. I have tried playing with the
> wait keyword in cursor but that doesn't seem to make a difference.
>
> Any suggestions? I am doing this on a Mac right now but have the same
> problem on my Solaris boxes.
>
> Thanks
> Eric Williams
> eric@astro.wesleyan.edu

I have run into this on Windows systems. It must have something to do with
the fast event detection and handling under MS Windows as I ddo not have
this problem under UNIX with X windows.

My work around is inserting a wait statement which allows for my finger to
get off the mouse button.

cursor,x,y,2,/dev ;Read position
wait,0.5
.....

Steve Ready
Xerox PARC
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: help with future application
Next Topic: cursor return in graphics window

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

Current Time: Mon Oct 27 00:46:32 PDT 2025

Total time taken to generate the page: 0.04599 seconds