Seekbar Minimum value?

Bibo4PC

Member
Hello Everyone,
I'm new to B4A and I have a quick question if it's not too much trouble, is there any way to set a minimum value for the seekbar?
I searched but didn't find any, just one topic on the wishlists so I guess it's not directly possible, any turn arounds?

Thank You..
 

derez

Expert
Licensed User
Longtime User
Hello Everyone,
I'm new to B4A and I have a quick question if it's not too much trouble, is there any way to set a minimum value for the seekbar?
I searched but didn't find any, just one topic on the wishlists so I guess it's not directly possible, any turn arounds?

Thank You..
You can add the min limit in the event sub:
B4X:
Sub SBar_ValueChanged (Value As Int, UserChanged As Boolean)
Value = Max ( Value, a ) ' where a is the min value
' do something
End Sub
This will set only the result value. If you want the bar itself to go down only to the min value, add a if value < a then sbar.value = ...
 
Upvote 0
Top