Page 1 of 1

Splash screen

Posted: Sat Jul 23, 2011 5:23 pm
by SteveHanlan
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

Re: Splash screen

Posted: Sat Jul 23, 2011 5:28 pm
by Klaus
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

Re: Splash screen

Posted: Sat Jul 23, 2011 7:37 pm
by SteveHanlan
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

Re: Splash screen

Posted: Sat Jul 23, 2011 8:43 pm
by jacque
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?

Re: Splash screen

Posted: Sun Dec 16, 2012 4:36 am
by paulsr
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

Re: Splash screen

Posted: Wed Dec 26, 2012 6:35 pm
by DRJ-UK
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