Screen not updating with unlock screen

Richard Gaskin ambassador at fourthworld.com
Tue Sep 11 09:04:16 EDT 2012


Gabriel Johnson wrote:
> I am having an issue getting output to display during a loop. I've
> tried lock/unlock screen but unlock screen does not seem to cause the
> screen to update. The only thing that works is "wait 0 seconds" but
> this causes bizarre behavior in some cases (mouseDown/mouseUp not
> behaving correctly [even when I use wait "with messages"]).

It works well without the "with messages" clause, so just adding "wait 
0" should do what you need.

That said, it appears that very soon that particular bit of arcane 
knowledge will no longer be needed to have text displayed reliably - 
members of the Dev Program can read Mark Waddingham's thoughtful 
comments on this here, noting that going forward the update behavior 
will be made more consistent across platforms:

<http://quality.runrev.com/show_bug.cgi?id=10333>

Until that version is released, simply adding "wait 0" will do what you 
need.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys




More information about the use-livecode mailing list