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!
on mouseUp
put empty into field "results"
repeat with i = 1 to 3
repeat with j = 1 to 4
put i && j && CR after field "results"
wait for .1 second
end repeat
end repeat
end mouseUp
When I run it, the button stays blue for a couple of seconds, and then all the numbers pop up at once.
on mouseUp
put empty into field "results"
repeat with i = 1 to 3
repeat with j = 1 to 4
put i && j && CR after field "results"
wait for .1 second with messages
end repeat
end repeat
end mouseUp
on mouseUp
put empty into field "results"
repeat with i = 1 to 3
repeat with j = 1 to 4
put i && j && CR after field "results"
unlock screen
wait for 30 milliseconds with messages
end repeat
end repeat
end mouseUp
It would seem to indicate that the screen is locked by default. But, even if that's true, I would still think that I could place the unlock screen command at the top of the handler (before the repeat loop). But it doesn't. It's still "jumpy" when I place the command outside of the repeat loop. Thus, I can only conclude that the screen locks itself back up every iteration of the loop. I doubt this is true, but you can hopefully see how confused I am.
from what I recall it has to do with Mac screen update. On the Windows side there seems to be no problem. But on a Mac it has to be made explicit.
It used to be like Klaus said: just a short wait with messages was enough for screen update.(just tested up to 6.6.1) But now (6.6.2) one has to explicitely add an unlock screen.
Well, it probably would. But which one, that unlock screen did not work in previous versions? Unlock screen would seem to be the most intuitive in this circumstance. But you always had to wait with messages to get the screen update. Unlock screen did not refresh the screen in a tight repeat loop.
Now you have to "wait with messages" and "unlock screen". Not at all intuitive.
But then I don't see many use cases for unfolding the filling of a field before the user in a repeat loop.
I am too undecided to file a bug report. Maybe someone else has a stronger opinon on this.
in 6.7 dp4 successive lines from a repeat loop display line by line without "wait with messages" or "unlock screen".
If I remember correctly you had an enhancement request/bug report regarding this behavior which had to be taken out of the built because of side effects in pre 6.7 versions.
So maybe we wait for the final release of 6.7 and live with the behavior pre 6.7.
bn wrote:So maybe we wait for the final release of 6.7 and live with the behavior pre 6.7.
On the contrary, the only way to make sure the final version of 6.7 no longer has funky Mac-specific workarounds is to begin working with the test version of 6.7 now.
After release, it'll be too late to fix things in time for release.
Richard Gaskin LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
I'm afraid this conversation has surpassed my cognitive abilities, but I very much appreciate the (hopefully temporary) workaround, and hope that Mac OSx weirdness is not permanent.
acidjazz wrote:I'm afraid this conversation has surpassed my cognitive abilities, but I very much appreciate the (hopefully temporary) workaround, and hope that Mac OSx weirdness is not permanent.
There's a lot of history here with Carbon and such, but the bottom line is that if you work with v6.7, with the understanding that it's still in development, you'll be in a great position to identify and report any odd behaviors we don't want to see in the final release.
Richard Gaskin LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn