Re: TForm and CM_MOUSELEAVE not working

From: eshipman (eshipman_at_yahoo!!!.com)
Date: 10/28/03


Date: Tue, 28 Oct 2003 16:15:05 -0600


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

Thanks, Peter, didn't think of that one...



Relevant Pages

  • Re: TForm and CM_MOUSELEAVE not working
    ... In article, Eshipman ... Any ideas why the mouseleave doesn't fire when the ... cure is to start a timer when the form gets a CM_MOUSEENTER. ...
    (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: Question regarding timer.
    ... When timer's elapsed event is fire at that time in debug window i am ... Means everytime i am reinitializing timer. ... real problem with this approach either. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Question regarding timer.
    ... When timer's elapsed event is fire at that time in debug window i am ... Means everytime i am reinitializing timer. ... real problem with this approach either. ...
    (microsoft.public.dotnet.languages.csharp)

Loading