B4A Library [B4X] [XUI] SD_ThermoBar

I wanted to create a progress bar in the shape of a thermometer

NOTE: You can use this library for personal and commercial use. Include it in your projects.. Attention, even if it is a B4XLib library, it is not allowed to decompress it, modify it, change its name or redistribute it without the permission of the author

SD_ThermoBar

Author:
Star-Dust
Version: 1.00
  • ThermoBar
    • Fields:
      • mBase As B4XView
      • Tag As Object
    • Functions:
      • AnimateTo (Value As Float, Duration As Int)
      • DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
        Base type must be Object
      • GetBase As B4XView
      • Initialize (Callback As Object, EventName As String)
    • Properties:
      • Max As Float [write only]
      • Min As Float [write only]
      • Value As Float


1-ezgif.com-crop.gif
 

Attachments

  • SD_ThermoBar.b4xlib
    2 KB · Views: 8
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
B4X:
Private Sub Button1_Click
    ThermoBar1.AnimateTo(50,1400)
    Sleep(2400)
    ThermoBar1.AnimateTo(90,1400)
    Sleep(2400)
    ThermoBar1.Value=10
End Sub
 

Attachments

  • ThermoBarSample.zip
    14.8 KB · Views: 4
Top