Browser widget and loading animation

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Browser widget and loading animation

Post by [-hh] » Sat Dec 01, 2018 12:26 am

This is the answer to a post in the use-list:
http://lists.runrev.com/pipermail/use-l ... 51777.html

The following works tested here on desktop, should work everywhere where the browser widget works.

1. Overlay browser widget "browser" with a browser widget "loader" (that displays a loading animation).
2. Load the slow loading URL into widget "browser".
3. Hide widget "loader" by browserDocumentLoadComplete of widget "browser".

See in detail the attached stack.
Note. If you have one instance of a browser widget then more instances (as here "loader") do NOT increase the size of your stack/standalone (except the image used).
 
Attachments
loadingTest.livecode.zip
(2.11 KiB) Downloaded 363 times
loadingTest.png
loadingTest.png (62.38 KiB) Viewed 5991 times
shiftLock happens

trevix
Posts: 958
Joined: Sat Feb 24, 2007 11:25 pm
Location: Italy
Contact:

Re: Browser widget and loading animation

Post by trevix » Tue Apr 18, 2023 12:14 pm

Hello.
I guess we could also do, in this way, a general use "Spinner", that will keep running no matter what.
May be getting the image locally, not from the web?
Tell me what you think.

Regards
Trevix
Trevix
OSX 14.3.1 xCode 15 LC 10 DP7 iOS 15> Android 7>

Post Reply

Return to “LiveCode Builder”