The solution I came up with was a standalone that I could send messages to. I 
called it Spinner because I wanted to show a dialog that displayed a message 
and a spinning graphic while Livecode was processing handlers. I could send 
commands to show itself, hide itself, display a message and activate the 
graphic. A progress bar could have been added but I stopped using it for some 
reason. On MacOS I used Applescript to send commands, but you could use sockets 
just as easily. 

I think there are widgets now that will do what you want. My understanding is 
that widgets can be designed to run independent of Livecode’s single processing 
thread. 

Bob S


> On Jul 25, 2024, at 11:42 PM, jbv via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi list,
> 
> I have a main loop that does a lot of things, like resizing images,
> precessing imagedata, creating fields and groups, etc.
> On top of the loop I have added "lock screen" to speed things up, and
> also because I don't want users to see what is going on, only the final
> layout when the loop is over.
> However, while the loop is running, I would like to have a progress bar
> and a message such as "step 1/20" etc.
> 
> How can I handle that ? I took a look at callbacks, but unless I missed
> something, it seems limited to players.
> 
> Thank you in advance.
> jbv
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to