You can set the window's Visible property to false in the Property
list. Then it will only show when you show it or set its visible
property to true in code.
The only problem with doing this is that it will then not handle
KeyDown events when you do show it. If you think RS ought to fix
that, please sign on to:
<http://support.realsoftware.com/feedback/viewreport.php?reportid=hpeophtv>
On OS X 10.4.8 Intel RB2006R4 UB
Today I have try to Open and Close a Window as Hidden. Why? I need
this to "initialize" my Editor Window on startup, because the first
time I Open a Window+file it take very loooong time to do that.
(Just like all other Windows that is opening the first time, take
about 100% longer time to open than the second time)
(See also the thread (todays) Caching fonts for better performance
Here is problem no 1 (in the App Open Event):
//
Dim w as new TextWindow
w.visible = false
w.show
//
The window is opened on the first line... and the second parameter
looks not to have an affect.
Also, If the Windows Property Visible= false, it has no affect when
I crete the window on the fly!
BUG Report and Example
http://www.realsoftware.com/feedback/viewreport.php?reportid=qjghfydw
In RB it is impossible to do this:
//
Dim w as TextWindow
w.Visible = False
w.myBoolean = true
w.Height = 200
w.width = 300
w.Init (create the window using the parameters)
w.SHOW (Open/Show the Window using the parameters)
//
Problem no 2:
I just put in the App Open Event: (The window property Visible=false
take now affect)
TextWindow.Show
TextWindow.Close
But it look that when the window is closed, I get flicker in compiled apps!
Any ideas, how to "Initialize a Window" ??
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>