1. [Win] Knowing when mouse leaves window?
- Posted by Judith Evans <camping at FLASH.NET> Oct 17, 2000
- 372 views
I've got a problem with a program in which I have a non-full screen window. I need to know when the mouse leaves my window and goes onto the desktop. Specifically, I need to know when the mouse event is LeftUp on the desktop. Can anyone help me? Thanks, Judith Evans
2. Re: [Win] Knowing when mouse leaves window?
- Posted by Matthew Lewis <MatthewL at KAPCOUSA.COM> Oct 17, 2000
- 398 views
> From: Judith Evans > > I've got a problem with a program in which I have a non-full > screen window. > I need to know when the mouse leaves my window and goes onto > the desktop. > Specifically, I need to know when the mouse event is LeftUp > on the desktop. Use captureMouse. From win32lib.htm: captureMouse( window ) Send all mouse events to window. Category: Mouse To release the mouse, use releaseMouse. Example: -- grab the mouse for TheWindow captureMouse( TheWindow ) releaseMouse() Return control of the mouse to Windows. Category: Mouse This is called after captureMouse to put control of the mouse back to normal. Example: -- release the mouse. releaseMouse() Matt Lewis
3. Re: [Win] Knowing when mouse leaves window?
- Posted by Judith Evans <camping at FLASH.NET> Oct 17, 2000
- 368 views
Thanks, Matt I had tried captureMouse once before without any luck but this time it does the trick. Judith On Tue, 17 Oct 2000 15:18:43 -0700, Matthew Lewis <MatthewL at KAPCOUSA.COM> wrote: >> From: Judith Evans >> >> I've got a problem with a program in which I have a non-full >> screen window. >> I need to know when the mouse leaves my window and goes onto >> the desktop. >> Specifically, I need to know when the mouse event is LeftUp >> on the desktop. > >Use captureMouse. From win32lib.htm: > >captureMouse( window ) >Send all mouse events to window. >Category: Mouse >To release the mouse, use releaseMouse. > > >Matt Lewis