Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Splash Screen

Splash Screen

Discuss OrbForms Designer and PocketC Architect

Postby ianscutts on Mon Feb 17, 2003 11:10 am

I have an application that does quite a lot of data manipulation before loading the main form. As a result, the user is presented with a blank screen for several seconds before anything appears. I want to be able to display a message (ideally some text with a bitmap) to the user as soon as the application starts, to remain on screen for only as long as it takes to get the data ready to display. I don't want to force the user to have to press a button the clear the startup message. Does anyone know the best way to do this?
I have tried several strategies. All have run into problems. I tried a modal form, loaded using domodal() in the application's onstart() handler, but I can't work out when to close() it. If I put the close statement in the main form's onopen() handler, it fails because there is no open form to return to. If I don't bother closing the modal form, the main form doesn't draw properly, i.e. bits of the modal form are left on screen. If I put the close() in the main form's ondraw() handler, then the main form is never displayed.
Any ideas? Thanks in advance.

Ian
ianscutts
 
Posts: 2
Joined: Mon Feb 10, 2003 9:57 pm
Location: United Kingdom

Postby FrankG on Mon Feb 17, 2003 11:45 am

Hi Ian,

I suspect the one item you need that's not mentioned in the set of things you tried would be a timer event. I'm not sure about the modal form or not aspects of it but assume you have two normal forms, a spalsh form and your main form. Try something like:

- in app.onstart open the splash form.<br />- in the onload handler for splashform issue a timer(0)<br />- in the ontimer handler for the splash form do your set up calculations and at the end open your main form.

HTH,
FrankG
FrankG
 
Posts: 210
Joined: Thu Jan 23, 2003 7:58 pm

Postby ianscutts on Mon Feb 17, 2003 12:42 pm

Hi FrankG,

Thanks for the advice. I think I was getting hung up on using a modal form for the splash screen. Your suggestion works a treat.

Ian
ianscutts
 
Posts: 2
Joined: Mon Feb 10, 2003 9:57 pm
Location: United Kingdom

Postby FrankG on Mon Feb 17, 2003 1:44 pm

Ian,

Glad to hear that it worked but you started me thinking (uh-oh, watch out) about a modal splash screen. I would expect something like this would work for that case:

- in app.onstart open the mainform.<br />- in mainform.onopen, domodal the splash form.<br />- in splash.onopen, do a splash.timer(0)<br />- in splash.ontimer, do the startup calculations and at the end, close the splash form. If you need to continue before control gets released to the user, you can pass control back to the mainform processing by issuing a mainform.timer(0). Then in mainform.ontimer, continue along.

Good luck with the project,
Frank
FrankG
 
Posts: 210
Joined: Thu Jan 23, 2003 7:58 pm


Return to OrbForms Designer and PocketC Architect

Who is online

Users browsing this forum: No registered users and 1 guest

cron