realbasic-nug
[Top] [All Lists]

Re: Testing whether a window is open

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Testing whether a window is open
From: Eric Williams <eric at oxalyn dot com>
Date: Thu, 31 Jan 2008 10:42:44 -0800
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <7AB59C07-175B-4EEB-A605-38432459A753 at stretchedout dot com> <D1959775-8BC1-47E0-AE89-F2BA7AD724EB at oxalyn dot com> <81D3EE9F-783C-488D-B81B-EE4615B5A7E8 at great-white-software dot com>
On Jan 31, 2008, at 10:16 AM, Norman Palardy wrote:

>
> On 31-Jan-08, at 10:50 AM, Eric Williams wrote:
>
>> Not to be presumptuous, but the fact that you are even asking this
>> question brings me to question the structure of your application. Why
>> do you need to do this? Is there some reason you're not keeping track
>> of your windows when you create them?
>
> Well ,,, you don't HAVE to since the runtime does do it for you :)
>
> You can just cycle through Window(i) and see if a window ISA kind and
> then test it for being visible or not
>

True enough - but this seems like extra work to me. Why not just keep  
track of everything as you create it? That way you'll always know  
what's going on instead of having to repeatedly cycle through all the  
windows to find the one you want.

Eric Williams
Oxalyn Software
http://software.oxalyn.com/

AE Monitor
http://software.oxalyn.com/AEMonitor/


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