Xojo Conferences
XDCMay2019MiamiUSA

(Not) Showing a Window on RB/RS (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: MVC Pattern
Next thread: Webcam on Windows


Re: REAL and InnoSetup question   -   Garth Hjelte
  (Not) Showing a Window on RB/RS   -   Jim Wagner
   Re: (Not) Showing a Window on RB/RS   -   Terry Ford
   Re: (Not) Showing a Window on RB/RS   -   Jim Wagner
   Re: (Not) Showing a Window on RB/RS   -   Terry Ford
   Re: (Not) Showing a Window on RB/RS   -   Jim Wagner
   Re: (Not) Showing a Window on RB/RS   -   Eric M. Williams
   Re: (Not) Showing a Window on RB/RS   -   Jim Wagner
   Re: (Not) Showing a Window on RB/RS   -   Roger Clary
   Re: (Not) Showing a Window on RB/RS   -   Jim Wagner
   Re: (Not) Showing a Window on RB/RS   -   Karen

(Not) Showing a Window on RB/RS
Date: 02.08.10 02:35 (Sun, 1 Aug 2010 18:35:54 -0700)
From: Jim Wagner
Hello, NUG -

I've been using RB for years (since version 0.9) so I must be having a
"senior moment" or something. Hope somebody can point me in the right
direction.

Have a simple app. I configured what I believe is called the
"application window" (the default window that appears when you create
a new project) to do the things I want presented when the app opens
under "normal" circumstances. This window happens to be named ManagerWin

Now, I decide that when the project opens the first time, I don't want
that window to open at all. So, in the app.open event, I check for the
presence of a preference file and if it does not exist, then I open a
"ProjectEdit" window. Only problem is that the ManagerWin opens on top
of it. It looks like the application is creating an instance of
ManagerWin automatically. But, I cannot find any property for that
window to change this behavior.

What am I missing? Most of my applications have used this automatic
opening to its advantage and I have forgotten (and cannot find out
how) to make this not happen. I cannot even find in the LR or other
help documents a description of the sequence of operations that take
place when an application opens!

Many thanks
Jim Wagner
Oregon Research Electronics

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 15:40 (Mon, 2 Aug 2010 07:40:20 -0700)
From: Terry Ford

On Aug 2, 2010, at 7:24 AM, Jim Wagner wrote:

> That clears up several puzzling questions. Thanks!

That's why we are here. You can also use the forums to get answers from friendly Rb users. :)

I often go there for simple win32 specific answers myself as the NUG is sometimes less responsive.

Use the NUG archives as well as they often have answers to these sorts of questions as they are quite common.

Terry
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 15:24 (Mon, 2 Aug 2010 07:24:03 -0700)
From: Jim Wagner

On Aug 2, 2010, at 7:11 AM, Terry Ford wrote:

>
> On Aug 1, 2010, at 9:23 PM, Jim Wagner wrote:
>
>> Thanks to all who have responded!
>>
>> Jim
>> On Aug 1, 2010, at 9:12 PM, Eric M. Williams wrote:
>>
>>>
>>> On Aug 1, 2010, at 6:35 PM, Jim Wagner wrote:
>>>
>>>> Hello, NUG -
>>>>
>>>> I've been using RB for years (since version 0.9) so I must be
>>>> having a "senior moment" or something. Hope somebody can point me
>>>> in the right direction.
>>>>
>>>> Have a simple app. I configured what I believe is called the
>>>> "application window" (the default window that appears when you
>>>> create a new project) to do the things I want presented when the
>>>> app opens under "normal" circumstances. This window happens to be
>>>> named ManagerWin
>>>>
>>>> Now, I decide that when the project opens the first time, I don't
>>>> want that window to open at all. So, in the app.open event, I
>>>> check for the presence of a preference file and if it does not
>>>> exist, then I open a "ProjectEdit" window. Only problem is that
>>>> the ManagerWin opens on top of it. It looks like the application
>>>> is creating an instance of ManagerWin automatically. But, I
>>>> cannot find any property for that window to change this behavior.
>>>>
>>>> What am I missing? Most of my applications have used this
>>>> automatic opening to its advantage and I have forgotten (and
>>>> cannot find out how) to make this not happen. I cannot even find
>>>> in the LR or other help documents a description of the sequence
>>>> of operations that take place when an application opens!
>>>
>>> This confuses me, too. Do this for the window:
>>>
>>> - Eliminate it from App's "Default Window" setting
>>> - Uncheck its Visible attribute
>>> - Uncheck its Implicit Instance attribute
>>>
>>> That should do the trick.
>
> In REALbasic 2007r4, the ImplicitInstance property was finally made
> available to Rb users. Prior to then, calling a window by its name,
> such as Window1.Visibleúlse or calling a method or property in
> that window was enough to instantiate the window and make it visible
> when you least expected it. You can still have a default window that
> is not implicit as it uses the New method to create it.
>
> The biggest difference is that you must now cast the window to a
> variable to create it and work with it. It is the better way as
> improper coding is much less likely to accidentally create the one-
> and-only Global reference to the window when you don't want it.
>
> When I first started with REALbasic in Version 1, I didn't
> understand why a window would be created other than by calling it's
> Global name reference. I have since changed my evil ways and never
> use them anymore. The Show and Hide methods and the Visible
> properties still work the same except they won't instantiate a
> window anymore. The new method also allows the use of Constructor
> methods which can accept parameters.
>
> Best,
>
> Terry

That clears up several puzzling questions. Thanks!

Jim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 15:11 (Mon, 2 Aug 2010 07:11:30 -0700)
From: Terry Ford

On Aug 1, 2010, at 9:23 PM, Jim Wagner wrote:

> Thanks to all who have responded!
>
> Jim
> On Aug 1, 2010, at 9:12 PM, Eric M. Williams wrote:
>
>>
>> On Aug 1, 2010, at 6:35 PM, Jim Wagner wrote:
>>
>>> Hello, NUG -
>>>
>>> I've been using RB for years (since version 0.9) so I must be having a "senior moment" or something. Hope somebody can point me in the right direction.
>>>
>>> Have a simple app. I configured what I believe is called the "application window" (the default window that appears when you create a new project) to do the things I want presented when the app opens under "normal" circumstances. This window happens to be named ManagerWin
>>>
>>> Now, I decide that when the project opens the first time, I don't want that window to open at all. So, in the app.open event, I check for the presence of a preference file and if it does not exist, then I open a "ProjectEdit" window. Only problem is that the ManagerWin opens on top of it. It looks like the application is creating an instance of ManagerWin automatically. But, I cannot find any property for that window to change this behavior.
>>>
>>> What am I missing? Most of my applications have used this automatic opening to its advantage and I have forgotten (and cannot find out how) to make this not happen. I cannot even find in the LR or other help documents a description of the sequence of operations that take place when an application opens!
>>
>> This confuses me, too. Do this for the window:
>>
>> - Eliminate it from App's "Default Window" setting
>> - Uncheck its Visible attribute
>> - Uncheck its Implicit Instance attribute
>>
>> That should do the trick.

In REALbasic 2007r4, the ImplicitInstance property was finally made available to Rb users. Prior to then, calling a window by its name, such as Window1.Visibleúlse or calling a method or property in that window was enough to instantiate the window and make it visible when you least expected it. You can still have a default window that is not implicit as it uses the New method to create it.

The biggest difference is that you must now cast the window to a variable to create it and work with it. It is the better way as improper coding is much less likely to accidentally create the one-and-only Global reference to the window when you don't want it.

When I first started with REALbasic in Version 1, I didn't understand why a window would be created other than by calling it's Global name reference. I have since changed my evil ways and never use them anymore. The Show and Hide methods and the Visible properties still work the same except they won't instantiate a window anymore. The new method also allows the use of Constructor methods which can accept parameters.

Best,

Terry
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 05:23 (Sun, 1 Aug 2010 21:23:19 -0700)
From: Jim Wagner
Thanks to all who have responded!

Jim
On Aug 1, 2010, at 9:12 PM, Eric M. Williams wrote:

>
> On Aug 1, 2010, at 6:35 PM, Jim Wagner wrote:
>
>> Hello, NUG -
>>
>> I've been using RB for years (since version 0.9) so I must be
>> having a "senior moment" or something. Hope somebody can point me
>> in the right direction.
>>
>> Have a simple app. I configured what I believe is called the
>> "application window" (the default window that appears when you
>> create a new project) to do the things I want presented when the
>> app opens under "normal" circumstances. This window happens to be
>> named ManagerWin
>>
>> Now, I decide that when the project opens the first time, I don't
>> want that window to open at all. So, in the app.open event, I check
>> for the presence of a preference file and if it does not exist,
>> then I open a "ProjectEdit" window. Only problem is that the
>> ManagerWin opens on top of it. It looks like the application is
>> creating an instance of ManagerWin automatically. But, I cannot
>> find any property for that window to change this behavior.
>>
>> What am I missing? Most of my applications have used this automatic
>> opening to its advantage and I have forgotten (and cannot find out
>> how) to make this not happen. I cannot even find in the LR or other
>> help documents a description of the sequence of operations that
>> take place when an application opens!
>
> This confuses me, too. Do this for the window:
>
> - Eliminate it from App's "Default Window" setting
> - Uncheck its Visible attribute
> - Uncheck its Implicit Instance attribute
>
> That should do the trick.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 05:12 (Sun, 1 Aug 2010 21:12:03 -0700)
From: Eric M. Williams

On Aug 1, 2010, at 6:35 PM, Jim Wagner wrote:

> Hello, NUG -
>
> I've been using RB for years (since version 0.9) so I must be having a "senior moment" or something. Hope somebody can point me in the right direction.
>
> Have a simple app. I configured what I believe is called the "application window" (the default window that appears when you create a new project) to do the things I want presented when the app opens under "normal" circumstances. This window happens to be named ManagerWin
>
> Now, I decide that when the project opens the first time, I don't want that window to open at all. So, in the app.open event, I check for the presence of a preference file and if it does not exist, then I open a "ProjectEdit" window. Only problem is that the ManagerWin opens on top of it. It looks like the application is creating an instance of ManagerWin automatically. But, I cannot find any property for that window to change this behavior.
>
> What am I missing? Most of my applications have used this automatic opening to its advantage and I have forgotten (and cannot find out how) to make this not happen. I cannot even find in the LR or other help documents a description of the sequence of operations that take place when an application opens!

This confuses me, too. Do this for the window:

- Eliminate it from App's "Default Window" setting
- Uncheck its Visible attribute
- Uncheck its Implicit Instance attribute

That should do the trick.

Eric M. Wililams
Oxalyn

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 03:00 (Sun, 1 Aug 2010 19:00:44 -0700)
From: Jim Wagner

On Aug 1, 2010, at 6:51 PM, Roger Clary wrote:

>
> On Aug 1, 2010, at 9:35 PM, Jim Wagner wrote:
>
>> I've been using RB for years (since version 0.9) so I must be
>> having a "senior moment" or something. Hope somebody can point me
>> in the right direction.
>>
>> Have a simple app. I configured what I believe is called the
>> "application window" (the default window that appears when you
>> create a new project) to do the things I want presented when the
>> app opens under "normal" circumstances. This window happens to be
>> named ManagerWin
>>
>> Now, I decide that when the project opens the first time, I don't
>> want that window to open at all. So, in the app.open event, I check
>> for the presence of a preference file and if it does not exist,
>> then I open a "ProjectEdit" window. Only problem is that the
>> ManagerWin opens on top of it. It looks like the application is
>> creating an instance of ManagerWin automatically. But, I cannot
>> find any property for that window to change this behavior.
>>
>> What am I missing? Most of my applications have used this automatic
>> opening to its advantage and I have forgotten (and cannot find out
>> how) to make this not happen. I cannot even find in the LR or other
>> help documents a description of the sequence of operations that
>> take place when an application opens!
>
> Click the app class in your project tab and notice the "Default
> Screen" property. This is what's opening your ManagerWin.
> One solution: Make the ManagerWin.visible = false, then either show
> your ProjectEdit or make the managerWin visible in the App.Open event.
>
Tried making the visible property false, but that did not do it.
Likewise hiding the window was not acceptable. Neither was showing,
then hiding. For that window. the show and hide methods appear to be
unrecognized.

Jim

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 02:51 (Sun, 1 Aug 2010 21:51:02 -0400)
From: Roger Clary

On Aug 1, 2010, at 9:35 PM, Jim Wagner wrote:

> I've been using RB for years (since version 0.9) so I must be having a "senior moment" or something. Hope somebody can point me in the right direction.
>
> Have a simple app. I configured what I believe is called the "application window" (the default window that appears when you create a new project) to do the things I want presented when the app opens under "normal" circumstances. This window happens to be named ManagerWin
>
> Now, I decide that when the project opens the first time, I don't want that window to open at all. So, in the app.open event, I check for the presence of a preference file and if it does not exist, then I open a "ProjectEdit" window. Only problem is that the ManagerWin opens on top of it. It looks like the application is creating an instance of ManagerWin automatically. But, I cannot find any property for that window to change this behavior.
>
> What am I missing? Most of my applications have used this automatic opening to its advantage and I have forgotten (and cannot find out how) to make this not happen. I cannot even find in the LR or other help documents a description of the sequence of operations that take place when an application opens!

Click the app class in your project tab and notice the "Default Screen" property. This is what's opening your ManagerWin.
One solution: Make the ManagerWin.visible = false, then either show your ProjectEdit or make the managerWin visible in the App.Open event.

Roger Clary
Class One Software
http://www.classonesoftware.com
Educational Software for Lifelong Learning



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 02:46 (Sun, 1 Aug 2010 18:46:06 -0700)
From: Jim Wagner
Thanks!

Jim
On Aug 1, 2010, at 6:40 PM, Karen wrote:

>
> On Aug 1, 2010, at 9:35 PM, Jim Wagner wrote:
>
>> What am I missing? Most of my applications have used this automatic
>> opening to its advantage and I have forgotten (and cannot find out
>> how) to make this not happen. I cannot even find in the LR or other
>> help documents a description of the sequence of operations that
>> take place when an application opens!
>
> In the app class set Default Window to none
>
> - karen
>
> _______________________________________________
> 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>

Re: (Not) Showing a Window on RB/RS
Date: 02.08.10 02:40 (Sun, 01 Aug 2010 21:40:01 -0400)
From: Karen

On Aug 1, 2010, at 9:35 PM, Jim Wagner wrote:

> What am I missing? Most of my applications have used this automatic opening to its advantage and I have forgotten (and cannot find out how) to make this not happen. I cannot even find in the LR or other help documents a description of the sequence of operations that take place when an application opens!

In the app class set Default Window to none

- karen

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>