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

Home » Public Forums » archive » 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
WIDGET_DRAW event.press/release values for mouse wheel events..undocumented? [message #55296] Thu, 16 August 2007 07:02 Go to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hi All,

IDL> print, !version
{ x86 linux unix linux 6.2 Jun 20 2005 32 64}

I have the following widget_draw setup:

dw_id = widget_draw( tlb_id, $
/button_events, $
event_pro = 'wplot_draw_event', $
xsize = dw_xsize, $
ysize = dw_ysize )

When I press/release the left/middle/right button I get the usual:

press/release value
left 1
middle 2
right 4

Now, I have one of those mice where the middle "button" is also a wheel. Being a
fat-fingered type, sometimes when I press the middle button in my apps, I sometimes also
move the wheel up or down. For those cases the event.press/release values are:

press/release value
roll up 8
roll down 16

and the event.type values are still 0 or 1 (for mouse button press and release) even
though I'm not depressing the wheel/button (event.clicks always remains 0)

Is this behaviour documented anywhere? The wheel_events keyword to widget_draw is not set
(and it's ignored for non-windows machines anyway). I googled the clip archives but didn't
find anything. The widget_draw docs didn't

Is this just a poor mans method of emulating wheel events for non-windows systems?

cheers,

paulv
[Message index]
 
Read Message
Read Message
Previous Topic: Re: WIDGET_DRAW event.press/release values for mouse wheel events..undocumented?
Next Topic: Question on collection change - MOD07 air profile

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

Current Time: Sat Oct 11 03:47:51 PDT 2025

Total time taken to generate the page: 7.51847 seconds