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: Paul Dobbs <dobbsp at charter dot net>
Date: Mon, 31 Dec 2007 17:30:32 -0600
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> <C3010198-0C6C-4D12-AB6E-32BC3D1B9FE9 at inspiringapps dot com>
Thanks to both of you. I made it into a floating window. It was a  
plain box before, in order to make it as small as possible. Making it  
a floating window added a title bar, but I moved the identification of  
the point into the title, so it's only a little bigger than it was  
before.

On Dec 31, 2007, at 11:21 AM, Joe Strout wrote:

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

------------------------------------------------------------
Paul Dobbs
dobbsp at charter dot net
pauldobbs at mac dot com
http://webpages.charter.net/dobbsp
------------------------------------------------------------
There's no place like 127.0.0.1

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