realbasic-nug
[Top] [All Lists]

Re: Way to determine if a window is visible?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Way to determine if a window is visible?
From: Arnaud Nicolet <arnaud at tribu dot ch>
Date: Wed, 28 Mar 2007 23:18:01 +0200
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <C2307FE2 dot 38EFD%markus_winter at blueyonder dot co dot uk>
Le 28 mars 07 à 21:26 Soir, Markus Winter a écrit:

> Hi all,
>
> is there a way to determine if a specific window is currently  
> showing on
> screen?
>
> visible only determines if it is visible when it is opened ...

Hello,

That's not quite true.

I just tested:

I created a timer (mode=0, period=1000)

in the MouseDown:
self.hide
Tim1.mode=1

in the timer's action event:

if self.visible then
msgbox "1"
else
msgbox "0"
end if

And I get the "0" message.

The visible property indicates reliably if the window is currently  
shown, even if it was only hidden using self.hide.
_______________________________________________
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>