Page 1 of 1

Best way to set properties on opening?

Posted: Thu Jun 06, 2013 11:11 am
by MaxV
What is the best way to set all properties on opening of the script?
I have a stack with two sub-stack, I need to set some properties on all the stacks before user digit anything.
Script will load all properties from an external file.

Re: Best way to set properties on opening?

Posted: Thu Jun 06, 2013 12:04 pm
by Klaus
Hi Max,

not sure I understand, but you can write an "inititalize" handler and execute it "on openstack" in the mainstack.
Livecode is fast enough, the user will not notice.


Best

Klaus

Re: Best way to set properties on opening?

Posted: Thu Jun 06, 2013 3:41 pm
by dunbarx
Hi.

As Klaus mentioned, LC executes sends a few messages before it itself opens and also before any stack opens. You can trap these, and lock the screen and/or hide any stacks during your initialization process so the user does not see what you are doing. In that way you can even navigate to other stacks and nobody will know, if that is necessary

Craig Newman