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!
lock screen
send "mouseup" to btn "inputdg3"
unlock screen
show widget "spinner"
send "mouseup" to btn "setDG "
send "mouseup" to btn "listanother" of cd "manage products"
The widget shows, but does not 'spin'.
This in the IDE, haven't tried in standalone.
Any ideas ?
on mouseUp
if the vis of widget "Spinner" is true then
set the vis of widget "Spinner" to false
set the label of me to "SHOW"
else
set the vis of widget "Spinner" to true
set the label of me to "HIDE"
end if
end mouseUp
Give it a whirl: if it works on your machine it is your code: if it doesn't work then it must be something a bit wrong with your machine.
on mouseUp
repeat with i = 1 to 100000000
put " fljlakjf lkasjd ölkajd lköas " into tTemp
if i mod 10000 is 0 then
wait 0 milliseconds with messages
end if
end repeat
beep
end mouseUp
If you wait too often it will slow down execution time too much, if only a couple of times spinner will advance only slowly.
SWEdeAndy wrote: Thu Aug 01, 2024 3:17 pm
I find the spinner widget rather useless, as it tends to freeze precisely when you want it to spin: during lockScreen or database fetches.
CAsba wrote: Thu Aug 01, 2024 12:06 pm
The widget shows, but does not 'spin'.
This in the IDE, haven't tried in standalone.
Any ideas ?
Could it be that this Spinner Widget does not spin only when the IDE is in 'Edit Mode'? Does it spin if you're on the Browser Tool?
I believe Widget OnTimer is execution context sensitive, I don't think it runs when the IDE is in Edit Mode.