Slider thumb position

Started by Tojmak, 27 April 2020, 17:49:23

Tojmak

Hi, is there possible to change "zero" position of slider's thumb? I want to align thumb and track to the left.

Kvaz1r

Can you provide more info about use case or maybe code  with demonstration example ? It's not very clear what exactly do you want.

As an option you can set some initial value and forbid change value less than this value in handling "valueChanged" signal.

texus

The center of the thumb is currently always placed at the leftmost position of the track. I don't think there currently is a good way to work around this.
I'll consider adding an option to the renderer to choose the behavior so that you could make it so that the entire thumb always remains on top of the track.

texus

@Tojmak I've added a ThumbWithinTrack option to the renderer in TGUI 0.9-dev. Setting it to true will make the side of the thumb align with the side of the track when the thumb has minimum or maximum value.