nanogui: button release


Previous by date: 7 Dec 2001 16:27:32 -0000 Re: button release, swati
Next by date: 7 Dec 2001 16:27:32 -0000 Re: need help, Greg Haerr
Previous in thread: 7 Dec 2001 16:27:32 -0000 Re: button release, swati
Next in thread:

Subject: Re: [nanogui] button release
From: "Greg Haerr" ####@####.####
Date: 7 Dec 2001 16:27:32 -0000
Message-Id: <001c01c17f3b$cefd7680$3aba46a6@xmission.com>

:    going through the code again i found that setcapture is already there
: with the first mouse press..and releasecapture on button up..
: but still when the mouse is dragged outside the button region,
:  button wndproc gets all the mouse move messages only as long as 
: the mouse is inside the button region..
: is ther any way to get the coordinates mouse pos when it is dragged out
: of the button??

No, there isn't.  It sounds like there might be a bug in the
SetCapture code.  I would put some debug statements in
wingdi.c::SetCapture as well as the button code to make sure that
the capture is in fact being set to your button window.

Regards,

Greg




: 
: thanx
: swati
: 
: -----Original Message-----
: From: Greg Haerr ####@####.####
: Sent: Friday, December 07, 2001 8:14 AM
: To: swati; nanogui list
: Subject: Re: [nanogui] button release
: 
: 
: : 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
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 


Previous by date: 7 Dec 2001 16:27:32 -0000 Re: button release, swati
Next by date: 7 Dec 2001 16:27:32 -0000 Re: need help, Greg Haerr
Previous in thread: 7 Dec 2001 16:27:32 -0000 Re: button release, swati
Next in thread:


Powered by ezmlm-browse 0.20.