Page 2 of 2
Re: better progress bar
Posted: Thu Jan 27, 2022 7:57 pm
by richmond62
Re: better progress bar
Posted: Thu Jan 27, 2022 7:59 pm
by richmond62
Re: better progress bar
Posted: Thu Jan 27, 2022 8:58 pm
by dunbarx
Richmond.
Smooth and compact.
But the OP wanted a scrollBar, not a progressBar. I assume the scrollbar is operated under mouse control.
@Samuele. Is that so?
Craig
Re: better progress bar
Posted: Thu Jan 27, 2022 9:07 pm
by Klaus
Hi Craig,
no, Samuele changed his mind in the middle of this thread:
viewtopic.php?f=7&t=36697#p212388
Best
Klaus
Re: better progress bar
Posted: Thu Jan 27, 2022 9:41 pm
by dunbarx
no, Samuele changed his mind in the middle of this thread:
All true, alas.
I still made a do-it-yourself scrollbar, just to see how it plays out. It was easy to get 90%. Not sure it is worth it anymore to get 100. There are glitches at the extreme ends. Likely the "mouseMove" message is just too ubiquitous.
Craig
Re: better progress bar
Posted: Thu Jan 27, 2022 9:59 pm
by Samuele
is there something for android mobile?
Thanks!
Re: better progress bar
Posted: Fri Jan 28, 2022 5:58 am
by RogGuay
As others have suggested, you can roll your own. Some ideas might present themselves by having look at ScrollBarOmatic and RadialDialOmatic available in Sample Stacks.
Cheers,
Roger
Re: better progress bar
Posted: Fri Jan 28, 2022 1:39 pm
by Klaus
Samuele wrote: Thu Jan 27, 2022 9:59 pm
is there something for android mobile?
Thanks!
Sure, take a look here:
https://developer.android.com/design
As you can see from Richmonds example stack, you basically change the width of any object
(image/button/graphic/even a field etc.) you use as the "progress bar" according to the current "progress".
Re: better progress bar
Posted: Fri Jan 28, 2022 5:49 pm
by richmond62
What difference is there between the progress bar
I ran up (extremely quickly because it is extremely simple)
and one for Android?
I see no great difference between milking a cow
and milking a goat, and learning how to milk a
cow should provide you with a transferrable skill.
This makes me think of children who come to my
EFL school and are either unable or not prepared to
make an effort to reason by analogy, but just want to
be spoon-fed prepackaged answers. I generally ask
them to leave after a while.
Re: better progress bar
Posted: Fri Jan 28, 2022 9:49 pm
by jacque
And here is an animated image of an Android Material progress bar, you want the first one:
https://kstatic.googleusercontent.com/f ... a3a32db938
You can use Richmond's example but make it out of two rounded graphics and keep the height small as per the Material Design specs. Google says 4 pixels high though you may want it a little taller than that, but don't make it too much taller or it won't look like Android.
This page is useful for specifications and usage:
https://material.io/components/progress ... indicators
Re: better progress bar
Posted: Sat Jan 29, 2022 9:44 am
by richmond62
Here's a portable version of the MacOS 12 progress bar for people
who cannot manage to make one themselves:
-
-
This is the sort of exercise I expect the 9-12 year olds who come to my programming classes
every July to manage by the end of week 1 (about 7 hours of instruction).
Re: better progress bar
Posted: Sat Jan 29, 2022 9:51 am
by richmond62
Personally this one is my all-time favourites, which
will involve coding that is almost exactly the reverse of my examples
above:
-
Re: better progress bar
Posted: Sat Jan 29, 2022 10:10 am
by richmond62
Re: better progress bar
Posted: Sat Jan 29, 2022 10:19 am
by richmond62
is there something for android mobile?
-
A 2 minute exercise with a search engine will give you lots:
-
-
-
ALL you now have to do is slice one of those images up into component parts
and use my example stacks to make your own.