realbasic-nug
[Top] [All Lists]

Re: Brainfreeze: test for open window

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Brainfreeze: test for open window
From: CV <atauqua at hit dot net>
Date: Sun, 01 Apr 2001 18:58:44 -0500
Hi,

Direct referencing aside, checking visibility is not a general test for
an open window, since a window can be both open and not visible. The
global boolean will do the job. 

If you have several windows that must be tested for openess, consider
maintaining a reference to each window when it is instantiated. Then you
can pass any of the references to a IsOpen method that you can write.
The new method would return a boolean after sorting through the open
windows and checking titles and types against those of the reference
passed. You would probably use WindowCount,Window(), and IsA in writing
the method.

Jack

lou wrote:
> 
> How do I test if a window is opened or not? Window.visble doesn't do it....
> 
> ---
> Search the list archive <http://bumppo.net/search/realbasic.html>
> Subscribe to the digest:
> <mailto:realbasic-nug-digest at lists dot realsoftware dot com>
> Unsubscribe:
> <mailto:realbasic-nug-off at lists dot realsoftware dot com>



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