Re: TForm and CM_MOUSELEAVE not working
From: Peter Below (TeamB) (100113.1101_at_compuXXserve.com)
Date: 10/28/03
- Next message: Peter Below (TeamB): "Re: Long/warped ToolTip"
- Previous message: Chris Lenover: "Re: Thread Syncronization methods"
- In reply to: eshipman: "TForm and CM_MOUSELEAVE not working"
- Next in thread: eshipman: "Re: TForm and CM_MOUSELEAVE not working"
- Reply: eshipman: "Re: TForm and CM_MOUSELEAVE not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 21:13:07 +0100
In article <MPG.1a073bbef9e967709896c4@forums.borland.com>, Eshipman
wrote:
> The below code only calls the mouseleave when clicking on another
> application. Any ideas why the mouseleave doesn't fire when the
> mouse leaves the form's boundaries?
Well, it never notices that the mouse has left the forms area since it
does not get any mouse messages anymore when that happens. A possible
cure is to start a timer when the form gets a CM_MOUSEENTER. When the
timer ticks check whether the form is still under the mouse, if not send
a CM_MOUSELEAVE to the form and stop the timer.
-- Peter Below (TeamB) Use the newsgroup archives : http://www.mers.com/searchsite.html http://www.tamaracka.com/search.htm http://groups.google.com http://www.prolix.be
- Next message: Peter Below (TeamB): "Re: Long/warped ToolTip"
- Previous message: Chris Lenover: "Re: Thread Syncronization methods"
- In reply to: eshipman: "TForm and CM_MOUSELEAVE not working"
- Next in thread: eshipman: "Re: TForm and CM_MOUSELEAVE not working"
- Reply: eshipman: "Re: TForm and CM_MOUSELEAVE not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|