nanogui: button release
Subject:
Re: [nanogui] button release
From:
"Greg Haerr" ####@####.####
Date:
7 Dec 2001 02:45:41 -0000
Message-Id: <004601c17ec8$fe7c4300$3aba46a6@xmission.com>
: i tried modifying mwin/winlib/button.c .. tried getting the cursor
: position outside the region of the button so as to release the mouse once
: it moves out...but doesnt work out
The problem is that you must capture the mouse with SetCapture
or your button control won't get any mouse messages when the
mouse isn't directly within the button window. By capturing the
mouse at the first mouse press, and then using ReleaseCapture on
the button up, the button WndProc will get all the messages
and you can fix the button control implementation bug.
Regards,
Greg