PC1 = vm.CreateProgressCircular("progresscircular1", Me)
PC1.SetValue("90").SetText("90%").SetSize("90").SetColor(vm.COLOR_AMBER).SetTextColor(vm.COLOR_BLUE).SetWidth("20")
PC1.SetValue("60")
PC1.SetText("60%")
Private pc5 As VMProgressCircular
pc5.Initialize(vue, "pc5", Me).SetVisible(True).SetText("%").SetTextColor(vm.COLOR_BLUE)
pc5.SetRotate("360").SetSize("90").SetWidth("20").SetColor(vm.COLOR_AMBER).SetValue("0")
cont.AddControl(pc5.ProgressCircular, pc5.tostring, 6, 2, 0, 0, 0, 0, 12, 6, 6, 6)
Sub startit
Dim cb As BANanoObject = BANano.callback(Me,"circulate", Null)
BANano.Window.SetInterval(cb, 1000)
End Sub
Sub circulate
'read the stored value
Dim vpc5 As String = pc5.GetValue
Log(vpc5)
vpc5 = BANano.parseint(vpc5)
If vpc5 = "100" Then
'we have reached 100%
vpc5 = "0"
Else
'increment by 10
vpc5 = BANano.parseint(vpc5) + 10
End If
'save the state
pc5.SetValue(vpc5)
End Sub
pc1.SetValue("60")