Progress bar
Posted: 13 Feb 2016 21:57
Can someone please help me.
I am trying out the progress bar on a ks108 screen using a PIC18f4620. All works great. I place two buttons on the screen one up and one down.
The up code
sub procedure ButtonRound3OnClick()
ProgressBar1.Position=ProgressBar1.Position + 10
if ProgressBar1.Position > 9 then
ProgressBar1.Position=10
end if
end sub
The Down Code
sub procedure ButtonRound6OnClick()
ProgressBar1.Position=ProgressBar1.Position-1
if ProgressBar1.Position < 1 then
ProgressBar1.Position=0
end if
end sub
When I compile and upload the code and I touch the buttons then nothing happens. What am I doing wrong here
Thanks in advance
Anton
I am trying out the progress bar on a ks108 screen using a PIC18f4620. All works great. I place two buttons on the screen one up and one down.
The up code
sub procedure ButtonRound3OnClick()
ProgressBar1.Position=ProgressBar1.Position + 10
if ProgressBar1.Position > 9 then
ProgressBar1.Position=10
end if
end sub
The Down Code
sub procedure ButtonRound6OnClick()
ProgressBar1.Position=ProgressBar1.Position-1
if ProgressBar1.Position < 1 then
ProgressBar1.Position=0
end if
end sub
When I compile and upload the code and I touch the buttons then nothing happens. What am I doing wrong here
Thanks in advance
Anton