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: john roberts <jarobe01 at athena dot louisville dot edu>
Date: Sun, 01 Apr 2001 18:28:18 -0400
> 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




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