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: lou <louisr at gte dot net>
Date: Sun, 01 Apr 2001 15:49:11 -0700
Thanks. A boolean it will be.

> 
>> on 04/01/2001 3:53 PM, lou at louisr at gte dot net wrote:
>> 
>>> if mywindow.visible = true then
>>> Beep
>>> End if
>> 
>> Try just 
>> 
>> if mywindow.visible then
>> Beep
>> End if
> 
> Sorry. I fired that one off too quickly.
> 
> Any direct reference to "mywindow" will force it to open and, if its
> visibility is set to true, then you will hear the beep. If on the other hand
> you want to test for it being open then you need to do it indirectly; one
> way would be to keep a global boolean value around and set it to true when
> "mywindow" opens.
> 
> Best regards,
> John Roberts
> 
> mailto:jarobe01 at athena dot louisville dot edu
> 
> 
> ---
> 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>