nanogui: Thread: problems with pushbuttons


[<<] [<] Page 1 of 1 [>] [>>]
Subject: problems with pushbuttons
From: Normen Bolling ####@####.####
Date: 14 Aug 2001 19:21:40 -0000
Message-Id: <3B797B29.9A84D20E@hhi.de>

Hi,

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.

I have small buttons in my application and so this happens very often.
And because the WM_COMMAND event will be sent only after
releasing buttons my application doesn't react in this case.

This problem exist on my linux-pc as well as on my intel assabet.

Is this a bug or is it my fault ?
Can someone help me  ?!

Thanx a lot,
Normen Bolling
--
####@####.####

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

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.