Page 1 of 1

Progress bar

Posted: 13 Feb 2016 21:57
by antonadc
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

Re: Progress bar

Posted: 13 Feb 2016 23:50
by antonadc
ok found it UpdatePBPosition(@ProgressBar1)