nanogui: button release


Previous by date: 7 Dec 2001 04:15:26 -0000 Re: button release, Greg Haerr
Next by date: 7 Dec 2001 04:15:26 -0000 Re: button release, Greg Haerr
Previous in thread: 7 Dec 2001 04:15:26 -0000 Re: button release, Greg Haerr
Next in thread: 7 Dec 2001 04:15:26 -0000 Re: button release, Greg Haerr

Subject: RE: [nanogui] button release
From: "swati" ####@####.####
Date: 7 Dec 2001 04:15:26 -0000
Message-Id: <NFBBIPPPGLPPAPILPDHOCENBCCAA.swati.kamat@tatainfotech.com>

hello

   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??

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

Previous by date: 7 Dec 2001 04:15:26 -0000 Re: button release, Greg Haerr
Next by date: 7 Dec 2001 04:15:26 -0000 Re: button release, Greg Haerr
Previous in thread: 7 Dec 2001 04:15:26 -0000 Re: button release, Greg Haerr
Next in thread: 7 Dec 2001 04:15:26 -0000 Re: button release, Greg Haerr


Powered by ezmlm-browse 0.20.