realbasic-nug
[Top] [All Lists]

Re: Which window to open?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Which window to open?
From: William Squires <wsquires at satx dot rr dot com>
Date: Fri, 30 May 2008 20:50:51 -0500
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug-bounces at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <5B033843-B22F-41F1-B411-32842C575AEF at comcast dot net> <AF679A1E-E75B-485F-B9B3-0D10E8580D58 at mac dot com>
Or just do what I do - set the default window to none, and - in your  
App class' Open() event, instantiate an object of the proper window  
subclass yourself. That way you know which one will pop up. All my  
windows I put a Display() method that - inside - calls "Me.Show()" or  
"Me.ShowModal()" as appropriate. Then all I have to do is:

Sub Open()
   Dim w As wndMain

   // other initialization code here...

   // Display our main window.
   w = New wndMain()
   w.Display()
End Sub

On May 30, 2008, at 1:25 AM, Jon Bachelor wrote:

>
> On May 29, 2008, at 11:49 PM, m wrote:
>
>> I am debugging a program. I have duplicated a window, set all the  
>> code
>> in the new window to the same as the old window. Changed the name of
>> the first ( now Old) window, but when I run the app, the Old window,
>> not the new window opens.
>> How do I get the new window to open when the app starts.
>> Thanks in advance.
>> Michael.
>>
>
> In the "Project" tab, click on "App" and look at the properties over
> towards the right side of the window.  In the section marked
> "Appearance," there's a field called "DefaultWindow".  Click on the
> drop-down there and pick your new window to open up, rather than the
> original (I'm not sure which version of RB you're using... I'm
> describing what I see in 2007r5).
>
> HTH!
>
> Jon
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>

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