rtek1000 Active Member Licensed User Longtime User Jul 31, 2017 #1 How long do I have to wait to adjust the value of a gauge? If the value transition is fast, the gauge locks, and then no longer moves if the last value is repeated. Do I need to add a timer to use the gauge? Lib: https://www.b4x.com/android/forum/threads/jgauges.70538/#content Attachments Gauge_Fail.zip 2.3 KB · Views: 354
How long do I have to wait to adjust the value of a gauge? If the value transition is fast, the gauge locks, and then no longer moves if the last value is repeated. Do I need to add a timer to use the gauge? Lib: https://www.b4x.com/android/forum/threads/jgauges.70538/#content
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2017 #2 It looks like a bug or limitation of the open source project. You can change it like this: B4X: Sub Button1_MouseClicked (EventData As MouseEvent) Gauge1.Value = 0 Sleep(1000) Gauge1.Value = 50 Sleep(1000) Gauge1.Value = 100 Sleep(1000) Gauge1.Value = 25 Sleep(1000) Gauge1.Value = 75 End Sub Upvote 0
It looks like a bug or limitation of the open source project. You can change it like this: B4X: Sub Button1_MouseClicked (EventData As MouseEvent) Gauge1.Value = 0 Sleep(1000) Gauge1.Value = 50 Sleep(1000) Gauge1.Value = 100 Sleep(1000) Gauge1.Value = 25 Sleep(1000) Gauge1.Value = 75 End Sub