Progress bar

General discussion on Visual GLCD Software.
Post Reply
Author
Message
antonadc
Posts: 277
Joined: 14 Dec 2012 10:15
Location: Pretoria South Africa

Progress bar

#1 Post by antonadc » 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

antonadc
Posts: 277
Joined: 14 Dec 2012 10:15
Location: Pretoria South Africa

Re: Progress bar

#2 Post by antonadc » 13 Feb 2016 23:50

ok found it UpdatePBPosition(@ProgressBar1)

Post Reply

Return to “Visual GLCD General”