Best way to set properties on opening?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Best way to set properties on opening?

Post 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.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Best way to set properties on opening?

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: Best way to set properties on opening?

Post 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
Post Reply