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

Home » Public Forums » archive » i386 v6.3 MacOSX: cursor.pro not responding to mouse button events
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
i386 v6.3 MacOSX: cursor.pro not responding to mouse button events [message #54883] Sun, 15 July 2007 18:01 Go to previous message
Tom Berger is currently offline  Tom Berger
Messages: 2
Registered: March 2006
Junior Member
I'm trying to use a direct graphics routine from the astronomy library
called curval.pro on a Mac i386 laptop. The mouse is a three-button
mouse that is functioning fine outside of IDL (i.e. left button is
primary, right button is secondary, scroll wheel is button 3, etc.).
In curval, there is no response to mouse button events.

Here's the code fragment that should update !MOUSE from the cursor.pro
built-in:

LOOP: sv_err = !MOUSE.BUTTON
!MOUSE.BUTTON = 0
cursor,x,y,2,/DEVICE,/CHANGE
cr_err = !MOUSE.BUTTON
if cr_err EQ 4 then begin
print,' '
if fileflag then free_lun,lun
return
endif

The rest of the routine prints out x and y as the mouse is moved
across the window. This works correctly but there's no way to quit out
of the loop since !MOUSE.BUTTON=4 is the exit condition. I have to
Control-C to crash curval and then retall to get back - not a very
elegant solution...

Nothing in my .Xdefaults file would seem to be messing with mouse
functionality in X-windows. The only relevant entry might be a
"*keyboardFocusPolicy: pointer" statement, but this is also in my PPC
machine version that works correctly.

Any suggestions?
Thanks,
Tom
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Selecting the Location of Contour Labels
Next Topic: Oooh...! It's harder than I thought!! To get average of each line using only meaningful data

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

Current Time: Wed Oct 08 17:03:37 PDT 2025

Total time taken to generate the page: 0.00463 seconds