Re: win32lib: mouse event

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

On Mon, 24 Mar 2003 17:04:41 +1030, <daryl_vdb at hotmail.com> wrote:

>
>
> I noticed win32lib seems to be missing some LeftDown mouse events when 
> the left mouse button is clicked multiple times in quick succession.  My 
> guess is that a LeftDoubleClick event is being sent but LeftDown is being 
> ignored. I'm using version 0.57.9.  AFAIK, an older version of win32lib 
> (I can't remember which one) didn't have this problem, and I'd like to 
> see this fixed in the future.
>

Hi Daryl,
I'm not so sure that earlier versions did that either. Currently the 
sequence of events for a left double click is ...

  WM_LBUTTONDOWN
  WM_LBUTTONUP
  WM_LBUTTONDBLCLK
  WM_LBUTTONUP

Win32lib does not filter the button down event. Windows itself must be 
doing that.

What would you like to see instead? ...

  WM_LBUTTONDOWN
  WM_LBUTTONUP
  WM_LBUTTONUP
  WM_LBUTTONDOWN
  WM_LBUTTONDBLCLK

maybe?

Though to be nice and logically consistant I suppose we should be seeing 
...
  WM_LBUTTONDOWN
  WM_LBUTTONUP
  WM_LBUTTONCLK  WM_LBUTTONDOWN
  WM_LBUTTONUP
  WM_LBUTTONDBLCLK

However there is no such thing as WM_LBUTTONCLK.

-- 

cheers,
Derek Parnell

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

Search



Quick Links

User menu

Not signed in.

Misc Menu