Re: TForm and CM_MOUSELEAVE not working

From: Peter Below (TeamB) (100113.1101_at_compuXXserve.com)
Date: 10/28/03


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


Relevant Pages

  • Re: TForm and CM_MOUSELEAVE not working
    ... Any ideas why the mouseleave doesn't fire when the ... > cure is to start a timer when the form gets a CM_MOUSEENTER. ... Thanks, Peter, didn't think of that one... ...
    (borland.public.delphi.language.objectpascal)
  • Re: How can i increase the mousehover event timer?
    ... How can i increase the mousehover event timer? ... Private Sub Shownotes(ByVal sender As System.Object, ... MouseEnter could start the timer and MouseLeave could stop it. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How can i increase the mousehover event timer?
    ... How can i increase the mousehover event timer? ... Private Sub Shownotes(ByVal sender As System.Object, ... MouseEnter could start the timer and MouseLeave could stop it. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DroppedDown
    ... MouseLeave will never fire. ... mouse has left the bounds of the drop down within the MouseMove. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.windowsforms)
  • mouseleave doesnt always fire
    ... Does anyone know why MouseLeave doesn't always fire? ... I created a form to which I added a container. ... In the MouseEnter Method I coded: ...
    (microsoft.public.fox.programmer.exchange)