Here's an abbreviated rundown of my startup procedure:
SplashWindow.show //this has the chasing arrows on it
DoInitThread:
InitObjectManagers //module routine
InitDatabase //module routine
MainWindow.hide //this has 6 pagepanels & 250+ controls
MainWindow doInitStuff //set a few runtime values
SplashWindow.hide
MainWindow.show
The module routines take 9 ticks, drawing and initialising the
MainWindow takes 2.5 seconds. The arrows chase for a very brief time (9
ticks?) and then stop, I guess once the MainWindow is called. Also, the
MainWindow shows itself BEFORE it does the MainWindow doInitStuff
routine, then disappears for a split second and reappears.
On Friday, Aug 1, 2003, at 14:47 Pacific/Auckland, Kevin Ballard wrote:
You need to put your initializing code in a thread. Otherwise, the
chasing arrows don't ever get a chance to update.
Are you initializing your window before or after it shows? If you have
a splash screen, then you could create the window and set the Visible
to False, initialize everything, then Show it and it should work fine.
On Thursday, July 31, 2003, at 09:29 PM, knee wrote:
My app has one main window containing a PagePanel with 7 pages and
upwards of 250 controls. When I launch the app it takes some time for
RB to initialize my database and "assemble" this main window before I
show it - a few seconds anyway. I therefore put up a little splash
window first to assure the user that something IS happening, then
hide it when the main window is ready to be shown. I put a
ChasingArrows control on this splash window, but the arrows don't
chase - they're just a static display, I can't get them to rotate.
I've tried "refreshing" the splash window, and putting elements of
the startup procedure in a thread, but this just makes the main
window get drawn element by element on the screen - very ugly - even
though I "hide" it first. Any ideas?
--
Kevin Ballard
REAL Software, Inc.
http://www.realsoftware.com
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
Ian
------------------------------
Ian G. Morris - Tonewright
ian at igmusic dot co dot nz
"If there really was a UFO cover-up, do you think NASA
would be a civilian organization reduced to orbiting in a
20-year-old space shuttle observing how plants germinate?"
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.
|