My spinner won't spin

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 508
Joined: Sun Dec 18, 2011 7:23 pm
Location: London
Contact:

My spinner won't spin

Post by kaveh1000 » Tue Feb 18, 2020 9:00 pm

I am trying to use the spinner widget. The screen is locked while it is supposed to show LC is busy. This is to save processing time. But the spinner is stationery. I have followed suggestions from here:

https://livecode.com/livecode-widgets-t ... indicator/

and put

Code: Select all

wait 0 with messages
in a loop that runs over 1000 times during the wait period. But still no spin.

Is it because of locked screen? I need screen locked as otherwise process takes too long.
Kaveh

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: My spinner won't spin

Post by bogs » Tue Feb 18, 2020 9:11 pm

Would be my guess that your guess is right about the locked screen. You *could* try locking the screen before the code part of the repeat, unlock it on the last line of the repeat to give the spinner a second to look like it is doing something, and then the repeat will lock / unlock the screen for each loop.
Image

kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 508
Joined: Sun Dec 18, 2011 7:23 pm
Location: London
Contact:

Re: My spinner won't spin

Post by kaveh1000 » Tue Feb 18, 2020 9:53 pm

Perfect Bogs. It works!! Thanks, again!
Kaveh

Post Reply

Return to “Talking LiveCode”