Widget Spinner
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Widget Spinner
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.
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
Hi jwtea,
do you mean something like this:
?
Best
Klaus
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
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 ~ ~
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
Hi Klause,Klaus wrote: ↑Tue May 22, 2018 1:42 pmHi 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
does you code work?
I tried, but I get a fixed spinner showing and hiding. It doesn't spin.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- Posts: 854
- Joined: Wed Nov 04, 2009 11:41 am
- Location: Gunthorpe, North Lincs, UK
Re: Widget Spinner
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".
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".
best wishes
Skids
Skids
Re: Widget Spinner
Hi Max,
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
is it really that hard to transcribe a (not so) unknown FIVE Letter name?
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
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
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: Widget Spinner
Bug reported: https://quality.livecode.com/show_bug.cgi?id=21300
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- VIP Livecode Opensource Backer
- Posts: 365
- Joined: Mon Jun 10, 2013 1:32 pm
Re: Widget Spinner
I Think we should call you Santa Klaus because you keep giving ....
Lagi
Lagi
Re: Widget Spinner
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
Eho is Klaus? You mean Klausimausi? Aha!