B4J Library [ABMaterial]: MashWaterBall

My next PM app is going to have some eye candy...

WaterIncrease.gif


Hi there waterball...

1. You set the range for the red, orange, green colour.
2. You set the values being, the value now and target value. If value now is more than target values, waterball goes down/decrements else it increments.

Enjoy...

B4X:
mashwater.Initialize(page,"mashwb","100","100")
    mashwater.SetRanges(35,70,90)
    mashwater.SetValues(0,80)
    mashwater.isLoading = False
    page.Cell(2,1).AddComponent(mashwater.ABMComp)
    page.Cell(2,1).IsPrintable = False
         
    mashwater1.Initialize(page,"mashwb1","140","140")
    mashwater1.SetRanges(50,80,100)
    mashwater1.SetValues(100,20)
    mashwater1.isLoading = False
    page.Cell(2,1).AddComponent(mashwater1.ABMComp)
    page.Cell(2,1).IsPrintable = False

PS: JS file in the objects folder.
 

Attachments

  • MashWaterBall.zip
    47.6 KB · Views: 440
Top