Is it possible to link 2 trackbar together?
I have trackbar1 and trackbar2. When i move one, i would like the other one to move too and vice-versa.
Thanks.
PO
Well, thanks but i did check the help before I posted the question and did not find what i was looking for.
So a little bit of coding on what to write in the on change event would help.
Thanks.
PO
PS: Maybe i'm not that good with searching the help.
Tek-Tips is not meant to be a free coding service!
Your original requirement is not clear. Let's assume that you want the slider in TrackBar2 to be the same as the position of the slider in TrackBar1 when TrackBar1 changes.
You should have found from the Help that the attribute that describes the position of the Slider in a TTrackBar component is called Position. I hinted at that in my previous reply and Delphi Help also gives clues:
Read Position to determine the current value represented by the track bar.
Thanks, after my post, i did dig into the help better and did find out on how to do it.
I was too impatient. The first reply got me on the right track...
PO
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.