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

Home » Public Forums » archive » Re: WIDGET_DRAW event.press/release values for mouse wheel events..undocumented?
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: WIDGET_DRAW event.press/release values for mouse wheel events..undocumented? [message #55291] Thu, 16 August 2007 11:30 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Richard Clark wrote:
> Yes, I have encountered this too. We use intel linux systems with pc
> type wheel mice.
>
> Neither the bu... I mean feature, nor its fix (in version 6.4) seems
> to be documented.
>
> After checking event.type for UP, DOWN, or MOTION mouse events, check
> for PRESS or RELEASE values >4.
>
> Here is a code snippet from a heavily modified version of Fanning's
> DRAWBOX_WIDGET example procedure that I use to get around it.
> It looks like you've already found the same fix.

Similar. I now use the following:

FUNCTION WPLOT_Which_Button, Value
CASE Value OF
1: e='LEFT'
2: e='MIDDLE'
4: e='RIGHT'
8: e='UP'
16: e='DOWN'
ELSE: e='NONE'
ENDCASE
RETURN, e
END

and call it thusly:

IF ( WPLOT_Which_Button(event.RELEASE) EQ 'LEFT' ) THEN BEGIN
....


I decided to use the CASE statement since one can't rely on the 8 and 16 values remaining
valid (and apparently, in v6.4, they're not)

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Using FSC_COLOR with postscript devices
Next Topic: WIDGET_DRAW event.press/release values for mouse wheel events..undocumented?

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

Current Time: Sat Oct 11 18:46:33 PDT 2025

Total time taken to generate the page: 1.68248 seconds