realbasic-nug
[Top] [All Lists]

Re: Hiding a popup window

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Hiding a popup window
From: Joe Strout <joe at inspiringapps dot com>
Date: Mon, 31 Dec 2007 10:21:11 -0700
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <86369E04-D72F-4DE3-8B97-80FDB4FA1AD1 at charter dot net>
On Dec 31, 2007, at 10:08 AM, Paul Dobbs wrote:

> I would like to hide the popup window when the mouse moves again.
> However, if I put "PopupWin.Hide" in the mouse move event for the
> window  containing the sprite surface, it doesn't work, because the
> popup window has the focus.

So why not just call SetFocus on the main window?  Assuming that  
PopupWin is a floating window, this should work fine, I would think.

If that doesn't work, a crude but reliable work-around would be to  
simply watch the global mouse position (System.MouseX and .MouseY) in  
a Timer.

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>