Page 1 of 1
Widget Spinner
Posted: Tue May 22, 2018 4:09 am
by jwtea
Hello , i trying to figure out how to use the widget "spinner".
As in one of my card there is a lot of information to load, so i thinking if how i can use the widget spinner to make it appear to prevent user thinking my app had hanged while making the card to load the information before going in ~ ~
Example;
Scene 1 : User press this button
Scene 2: Widget spinner appear and spinning
Scene 3: Go to the card with all the information loaded.
Re: Widget Spinner
Posted: Tue May 22, 2018 1:42 pm
by Klaus
Hi jwtea,
do you mean something like this:
Code: Select all
on mouseup
show widget "your spinner here"
## do your loading stuff here...
## and here...
hide widget "your spinner here"
go cd "all infos loaded"
end mouseup
?
Best
Klaus
Re: Widget Spinner
Posted: Wed May 23, 2018 4:50 am
by jwtea
Hello Klaus,
Unfortunately no ~ ~
In my card script, i got a lot of script going on in the preopencard function ~ ~
I wanted to let the preopencard function to run finish before going in the card therefore meanwhile while waiting for the preopencard function , a spinner will appear and spinning ~ ~
Re: Widget Spinner
Posted: Wed May 23, 2018 12:59 pm
by MaxV
Klaus wrote: ↑Tue May 22, 2018 1:42 pm
Hi jwtea,
do you mean something like this:
Code: Select all
on mouseup
show widget "your spinner here"
## do your loading stuff here...
## and here...
hide widget "your spinner here"
go cd "all infos loaded"
end mouseup
?
Best
Klaus
Hi Klause,
does you code work?
I tried, but I get a fixed spinner showing and hiding. It doesn't spin.
Re: Widget Spinner
Posted: Wed May 23, 2018 1:12 pm
by Simon Knight
Hi,
I have a similar problem in that my spinner appears and never updates (spins). I don't think its the widget it just that Livecode is to busy doing the other stuff. In my case its loading and resizing image files. I have tried putting a number of "wait with messages" but it will not spin even with a wait of three seconds. The best I came up with was changing the cursor to busy, this does update a little with a 300ms "wait with messages".
Re: Widget Spinner
Posted: Wed May 23, 2018 3:12 pm
by Klaus
Hi Max,
MaxV wrote: ↑Wed May 23, 2018 12:59 pm
Hi Klause,
is it really that hard to transcribe a (not so) unknown FIVE Letter name?
MaxV wrote: ↑Wed May 23, 2018 12:59 pm
does you code work?I tried, but I get a fixed spinner showing and hiding. It doesn't spin.
Lets say: it SHOULD work!
I guess Simon is right and this is just like with animated gifs, they will also halt if LC is doing lots of computing stuff.
Best
Klaus
Re: Widget Spinner
Posted: Thu May 24, 2018 2:43 pm
by MaxV
Klaus wrote: ↑Wed May 23, 2018 3:12 pm
Hi Max,
MaxV wrote: ↑Wed May 23, 2018 12:59 pm
Hi Klause,
is it really that hard to transcribe a (not so) unknown FIVE Letter name?

Sorry, my fault. For Italians you name is a mess to type. It's totally unnatural because we don't use K and the "laus" is very unorthodox coupling of vocals... and so my hands added a "e" automatically. Do you mind if I call you "Nicola"?
aus dem freundlichen viertel Maximillian
Re: Widget Spinner
Posted: Thu May 24, 2018 2:49 pm
by MaxV
Re: Widget Spinner
Posted: Thu May 24, 2018 2:50 pm
by Klaus
MaxV wrote: ↑Thu May 24, 2018 2:43 pm
Do you mind if I call you "Nicola"?
YES!
You can call me Claudio (Maggiore) if you really can't spell Klaus!

Re: Widget Spinner
Posted: Thu May 24, 2018 4:35 pm
by Lagi Pittas
I Think we should call you Santa Klaus because you keep giving ....
Lagi
Re: Widget Spinner
Posted: Thu May 24, 2018 7:23 pm
by bogs
That is two in favor of my
favorite nickname for
Klaus, now we just change your nationality to Dutch and we're all set

Re: Widget Spinner
Posted: Thu May 24, 2018 7:31 pm
by SparkOut
Eho is Klaus? You mean Klausimausi? Aha!
Re: Widget Spinner
Posted: Thu May 24, 2018 8:35 pm
by bogs
SparkOut wrote: ↑Thu May 24, 2018 7:31 pm
Klausimausi
I like that one too, I'm flexible. Of course, the most often mangled spelling appears to be "Kalus", but I don't think that one has any flair
