nanogui: problems with pushbuttons


Previous by date: 14 Aug 2001 20:48:54 -0000 problems with pushbuttons, Normen Bolling
Next by date: 14 Aug 2001 20:48:54 -0000 touch screen, victor
Previous in thread: 14 Aug 2001 20:48:54 -0000 problems with pushbuttons, Normen Bolling
Next in thread:

Subject: Re: [nanogui] problems with pushbuttons
From: "Greg Haerr" ####@####.####
Date: 14 Aug 2001 20:48:54 -0000
Message-Id: <04e101c12504$01190b80$6817dbd0@censoft.com>

: i've a problem with pushbuttons under microwindows (winapi-version).
: If the user of my application presses a pushbuttons a little bit longer
: and moves the mouse away from the event-region to release it there,
: the button stays highlighted till the user clicks the button again.
: 
:: Is this a bug or is it my fault ?

Normen - this is an implementation issue in the button control.
Basically, the fix required is as follows:  

Win32 only sends messages to the window that the mouse is
over.  When you move the mouse off the button, it doesn't get
the mouseup event, and thus stays depressed.  The fix is that
the button control needs to capture the mouse with SetCapture
so that it gets all mouse events regardless of mouse position until
mouseup, then it needs to release the capture with ReleaseCapture.

Regards,

Greg


Previous by date: 14 Aug 2001 20:48:54 -0000 problems with pushbuttons, Normen Bolling
Next by date: 14 Aug 2001 20:48:54 -0000 touch screen, victor
Previous in thread: 14 Aug 2001 20:48:54 -0000 problems with pushbuttons, Normen Bolling
Next in thread:


Powered by ezmlm-browse 0.20.