nanogui: button release


Previous by date: 7 Dec 2001 02:45:41 -0000 Re: Amazon.com can help you get more from your Web site!, Lisa Lindberg, Amazon.com Associates Program
Next by date: 7 Dec 2001 02:45:41 -0000 Re: button release, swati
Previous in thread: 7 Dec 2001 02:45:41 -0000 Re: button release, Jordan Crouse
Next in thread: 7 Dec 2001 02:45:41 -0000 Re: button release, swati

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


Previous by date: 7 Dec 2001 02:45:41 -0000 Re: Amazon.com can help you get more from your Web site!, Lisa Lindberg, Amazon.com Associates Program
Next by date: 7 Dec 2001 02:45:41 -0000 Re: button release, swati
Previous in thread: 7 Dec 2001 02:45:41 -0000 Re: button release, Jordan Crouse
Next in thread: 7 Dec 2001 02:45:41 -0000 Re: button release, swati


Powered by ezmlm-browse 0.20.