Splash screen

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Splash screen

Post by SteveHanlan » Sat Jul 23, 2011 5:23 pm

Does anyone know how to detect when the splash screen is off

I have a primary card that has a lot of calculations and updates with a progress bar, all in the 'OpenCard', however on opening the App, the splash screen does not go away until the 'OpenCard' is completed. Subsequent call to the OpenCard are just fine.

I notice that I can put an 'Answer' command in the 'OpenCard' and it will display (and wait, of course), over the top of the splash screen. Weird!

thanks

Steve

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Splash screen

Post by Klaus » Sat Jul 23, 2011 5:28 pm

Hi Steve,

just a thought, but couldn't you simply fire a:

Code: Select all

on opencard
  send "my_complicated_calculation_routine" to this cd in 10
  ## more short stuff here...
end opencard
Know what I mean?
This way "opencard" is executed WITHOUT these long handlers, maybe that will do for you?


Best

Klaus

SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Re: Splash screen

Post by SteveHanlan » Sat Jul 23, 2011 7:37 pm

Klaus

Thanks for your input ...

The problem is, now matter how much I do in the openCard, the splash screen does not go away until the openCard has finished, so even a call to the calculations would still be hidden the first time.

Basically, I need to find out what fires after the openCard, so I can put the call to the calculations in there.

Steve

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Splash screen

Post by jacque » Sat Jul 23, 2011 8:43 pm

I'm guessing the splash goes away at the first idle after all startup scripts complete (which would include preOpen and Open messages.) If that's true, then Klaus' suggestion should work. Did you try it?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: Splash screen

Post by paulsr » Sun Dec 16, 2012 4:36 am

I encountered the same problem this morning and can confirm the solution mentioned here does work.

I simply renamed my openCard handler to oCard and then created:

Code: Select all

on openCard
   send oCard to this card in 10
end openCard
Works like a charm. I thought I would mention this for when the next person encounters the problem.

--paul

DRJ-UK
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 73
Joined: Tue Aug 23, 2011 2:50 pm
Contact:

Re: Splash screen

Post by DRJ-UK » Wed Dec 26, 2012 6:35 pm

paulsr wrote:I encountered the same problem this morning and can confirm the solution mentioned here does work.

I simply renamed my openCard handler to oCard and then created:

Code: Select all

on openCard
   send oCard to this card in 10
end openCard
Works like a charm. I thought I would mention this for when the next person encounters the problem.
Colleagues

This same approach is also ideal when moving from one card to another as it makes the switch fast. :D

Dave
LiveCode: Versions 8.0, 8.1
Xcode: Version 7.3, 8.0
Mac OS X: 10.11.12 (macOS Sierra) on iMacs with 3.4 Intel Core i7 & 16GB Memory

Creating Apps for educational professionals, effective teaching and learning.

Post Reply