S syncmaster13 Member Licensed User Longtime User Aug 25, 2013 #1 HI How to program 3 seekbars that are “connected” to each other by a maximum value. Maximum value is simply calculated as seekbar1.value + seekbar2.value + seekbar3.value Let say a user set up maximum value 30. While a user is sliding seekbar1.value to 10, seekbar2.value to 10 nothing will happen but when seekbar3.value will change to 10 or more then first and second seekbar should change values automatically to keep within maximum value. Thanks
HI How to program 3 seekbars that are “connected” to each other by a maximum value. Maximum value is simply calculated as seekbar1.value + seekbar2.value + seekbar3.value Let say a user set up maximum value 30. While a user is sliding seekbar1.value to 10, seekbar2.value to 10 nothing will happen but when seekbar3.value will change to 10 or more then first and second seekbar should change values automatically to keep within maximum value. Thanks
Erel B4X founder Staff member Licensed User Longtime User Aug 26, 2013 #2 You should handle the ValueChanged event of the SeekBars and update the other bars. Upvote 0
S syncmaster13 Member Licensed User Longtime User Aug 27, 2013 #3 I did that (was just subtracting -1 from value) but seekbars just don't behave "nice". Is there an example made from more experienced programmers? Thanks Upvote 0
I did that (was just subtracting -1 from value) but seekbars just don't behave "nice". Is there an example made from more experienced programmers? Thanks