Animated gauge component

Ask about the individual Gambas components here.
Post Reply
User avatar
jornmo
Site Admin
Posts: 224
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Animated gauge component

Post by jornmo »

Working on making animated gauge components:
Gauge-0.1.tar.gz
(16.12 KiB) Downloaded 780 times
This is just a rough draft that I hope to refine more and release on the farm.

I had good help from my friend with the sinus curve and the bouncing formula for what I initially asked here: viewtopic.php?f=4&t=5
User avatar
jornmo
Site Admin
Posts: 224
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: Animated gauge component

Post by jornmo »

Attachments
gauge.webm
(498.74 KiB) Downloaded 830 times
User avatar
Askjerry
Posts: 64
Joined: Saturday 18th August 2018 9:06pm
Location: Kyle, Texas, USA
Contact:

Re: Animated gauge component

Post by Askjerry »

Very nice! If I can figure out how to connect with the Beaglebone... this could come in useful as a display!

Thank you!
:D
User avatar
jornmo
Site Admin
Posts: 224
Joined: Wednesday 21st September 2016 1:19pm
Location: Norway

Re: Animated gauge component

Post by jornmo »

Makes me happy to hear that!
User avatar
Serban
Posts: 39
Joined: Saturday 28th March 2020 8:17am
Location: Alexandria
Contact:

Re: Animated gauge component

Post by Serban »

Looks great!
I'll think about some ways to use it.
The first idea that crossed my mind is for some web app to test net speed. This seems to be the best fit so far...
Another idea, would be to make it a widget and pop it up if some procedure sucks a lot of time to finish.
Something like:
'--- Some time sucking loop...
While...
  If lngTimerNow - lngTimerStart > 100 Then
    AniGauge.Show
  Else
    AniGauge.Close
  End If
Wend
In DirLister, there are this kind of operations that take a long time. While i have the mechanism to show something that gives a clue on what's happening inside, I'm looking forward for better solutions, that might reduce the pressure on system resources.
Any idea would be a great help.
DirLister is available on Gambas Farm: ID=755.
For the widget version, the defalult settings would be nice to be "Centered" so when it pops up, it goes into the center of the Form, overlapping the other controls, to make obvious that "Hey dude, that's going to take some time, so, bear with me!" :D
The only thing necessary for the triumph of evil is for good men to do nothing.”― Edmund Burke;
It's easy to die for an idea. It is way harder to LIVE for your idea! (Me)
Post Reply