Re: Can has Answer/Ask -like progress bar?
Posted: Sat Mar 30, 2024 6:58 am
Anyway, getting back to the original point of this topic...
Link: https://mega.nz/folder/tXEi1JzK#YIdb511w5yuinee6KPULUw This is a stack you could choose to include as a substack in any project.
If you drag out the corners of the window, you can see what it uses to create the bars, and there's a few test buttons and suchlike... However, you can also invoke the progress bar setup as a function: Try running this in a message box, with the stack open:
The first number is the total (any large number). The second number is the progress so far (a smaller number than the first). The string "A long wait..." is the message you want to be displayed.
Of course, this is non-blocking (unless you go and embed it in a cpu-hungry loop), so you can simply:
to hide the dialog (if you'd made it modal or something).
I should also mention, the colours aren't hard-coded or anything. So you can change the colours of the bars as you see fit, with the inspector. This way, it can fit into whatever project / implementation / os scheme you have in mind.
(Or you could colour them via script to match the platform the script is being run on).
Link: https://mega.nz/folder/tXEi1JzK#YIdb511w5yuinee6KPULUw This is a stack you could choose to include as a substack in any project.
If you drag out the corners of the window, you can see what it uses to create the bars, and there's a few test buttons and suchlike... However, you can also invoke the progress bar setup as a function: Try running this in a message box, with the stack open:
Code: Select all
dispatch progbar(128974848,51914182,"A long wait...") to this stack
Of course, this is non-blocking (unless you go and embed it in a cpu-hungry loop), so you can simply:
Code: Select all
close stack "progressbars"
I should also mention, the colours aren't hard-coded or anything. So you can change the colours of the bars as you see fit, with the inspector. This way, it can fit into whatever project / implementation / os scheme you have in mind.
(Or you could colour them via script to match the platform the script is being run on).