Sub Globals
Dim myval As Int
Private StartPointSeekBar1 As StartPointSeekBar
Private hpll As Label
Private hplh As Label
Private hpl As Label
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("main")
' High Pressure alarm limit unit
StartPointSeekBar1.TheBackgroundColor = Colors.DarkGray
StartPointSeekBar1.TheRangeColor = 0xFF33B5E5
StartPointSeekBar1.MinValue = 0
StartPointSeekBar1.maxValue = 6.9
StartPointSeekBar1.ThumbValue = 2.5
'============================
hpll.Text = 0
hpll.TextColor = Colors.Red
hpll.TextSize = 20
hplh.Text = 6.9
hplh.TextColor = Colors.Red
hplh.TextSize = 20
'============================
hpl.Color = Colors.Transparent
hpl.TextColor = Colors.White
hpl.TextSize = 30
hpl.Text = StartPointSeekBar1.CurrentThumbValue
End Sub
Sub StartPointSeekBar1_value_changed
myval = StartPointSeekBar1.CurrentThumbValue
hpl.Text = Round2(myval,2)
End Sub