New topic: 

App re-opens window when closed down

<http://forums.realsoftware.com/viewtopic.php?t=45737>

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        vfran          Post subject: App re-opens window when closed 
downPosted: Sat Oct 27, 2012 11:29 am                         
Joined: Mon Dec 07, 2009 7:30 pm
Posts: 84
Location: Europe/Italy                I have a floating window with following 
code in the 'Close' event: window1.mealdatacheckbox.value= false
I want to uncheck the mealdatacheckbox in Window1 when the floating window is 
closed. Window1 is the main window for the app.

If I close Window1 while the floating window is open the app closes (as it 
should), but app restarts after a few seconds from Window1.

Any clues og suggestions?   
                             Top                kermit          Post subject: 
Re: App re-opens window when closed downPosted: Sat Oct 27, 2012 11:44 am       
                  
Joined: Mon May 30, 2011 12:56 am
Posts: 537                if the floating window is window1, remove window1 
from that line of code.

If it is not, then asking for window1 by name is causing a brand new window1 to 
appear. Implicit instatiation.

If you are using window1, pass a reference to it to your floating window. Call 
it 'theMainWindow' as a property of the floating window.
Then change the code above to theMainWindow.mealdatacheckbox.value= false so 
that it doesnt create a new window1 at that point.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to