Yes, I can see how a splash screen can serve as a delay mechanism... Thanks, Mark.
S. > -----Original Message----- > From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode- > boun...@lists.runrev.com] On Behalf Of Mark Schonewille > Sent: Sunday, July 24, 2011 6:44 PM > To: How to use LiveCode > Subject: Re: are all controls loaded? > > Hi Slava, > > I have similar problems once in a while. Often, I do this: > > on preOpenStack > hide this stack > // do some very important stuff here > readPrefs -- (e.g. read registration data) > // and send a command in x millisecs > send "initialise" to me in 0 millisecs > end preOpenStack > > on initialise > put the seconds into mySecs > go stack "Splash" in new window > // the splash stack contains everything > // to set itself up > // now we can set up our controls > send "foo" to btn 2 > put url "http://bla.com" into fld 5 > // has the user clicked Splash away? > if "Splash" is among the lines of the openStacks then > wait until (the seconds - theSecs > 5) or not \ > ("Splash" is among the lines of the openStacks) with messages > close stack "Splash" > end if > end initalise > > Of course, many variations are possible. > > -- > Best regards, > > Mark Schonewille > > Economy-x-Talk Consulting and Software Engineering > Homepage: http://economy-x-talk.com > Twitter: http://twitter.com/xtalkprogrammer > KvK: 50277553 > > What does that error mean? Buy LiveCodeErrors for iPhone now > http://qery.us/v4 A must-have for LiveCode programmers. > > On 25 jul 2011, at 00:32, Slava Paperno wrote: > > > The openCard handler in the first card of my stack sends messages to > various > > controls on the card, and I think some of these messages are sent > before the > > control is fully loaded: I see error "no such object." If I use "send > XXX to > > YYY in 800 milliseconds," then all is well. > > > > How do I solve this dilemma? I need something like an > > "afterAllControlsAreLoaded" message :) > > > > Slava _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode