realbasic-nug
[Top] [All Lists]

Hiding a popup window

To: REALbasic Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Hiding a popup window
From: Paul Dobbs <dobbsp at charter dot net>
Date: Mon, 31 Dec 2007 11:08:47 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I have a sprite surface that has a number of points marked on it. When  
I move the mouse near one of them, I am popping up a small window with  
information about the point (number, location, distance from previous  
point). That works great. My problem is hiding the popup window.

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. If I put the same code in the mouse move  
event for the popup window, it only works if the mouse is moved into  
the popup window, and I want the popup to disappear regardless of  
where I move the mouse.

Does anyone have a reasonable solution for this problem?
------------------------------------------------------------
Paul Dobbs
dobbsp at charter dot net
pauldobbs at mac dot com
http://webpages.charter.net/dobbsp
------------------------------------------------------------
There are 10 types of people in this world - those that understand
binary and those that don't.


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