Re: Mouse Eventes Again

new topic     » goto parent     » topic index » view thread      » older message » newer message

Sergio Gelli wrote:
> 
> 
> Hello List
> 
> I am using a Windows Millennium Edition.
> 
> Why I can't detect the Middle Buttom in the code below?
> Any suggestion?

This happens because the library does not trap middle mouse button actions.

To fix this right now, you need to edit the library.

Find the lines ...

  vEventsHandled = {
      WM_MOUSEMOVE,

and add after those lines ...

      WM_MBUTTONDOWN,
      WM_MBUTTONUP,
      WM_MBUTTONDBLCLK,

Then find the lines ...

  vHandler = {
      routine_id("fDoMouse"),

and add after those lines ...

      routine_id("fDoMouse"),
      routine_id("fDoMouse"),
      routine_id("fDoMouse"),

The middle mouse button will now trigger a w32HMouse event.

I've fixed this for the next release.
 
-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu