Posted by Craig on November 18, 2005
In Reply to: Re: Progress bar posted by Maxwell on November 17, 2005
: I have a test project that I am working on. It has a trackbar and a progress bar on the forum, I have
the following code for the trackbar
: : Progressbar1.Position := Progressbar1.Position + 1
: : My question is this as the track bar is going up it increase the progress bar can the trackbar be set so when it is decreased the progressbar will decrease as well?
: Sorry, but I don't see where the problem is...
: For increasing the progress bar, you use:
: Progressbar1.Position := Progressbar1.Position + 1
: Why don't you use the following to decrease it?
: Progressbar1.Position := Progressbar1.Position - 1
The problem is when I have a +1 the progress bar will always increase whether the track bar is increased or decreased. I am having trouble figuring out how to make the progress bar track with the track bar.