Page 1 of 1

How to set slider size in a Tee.Scroller

Posted: Mon Jan 27, 2025 9:33 pm
by 15695569
Hello,

I have added a scroller to a chart but the slider width is longer than the scroller. I have tried setting the slider.bounds.width property but it doesnt change the length of the slider when it renders.

Thanks

Re: How to set slider size in a Tee.Scroller

Posted: Tue Jan 28, 2025 8:19 am
by Marc
Hello,

The size of the band at startup relates to the Chart's Bottom Axis minimum and maximum values.

Setting the bottom axis' range sets the scroller slider size.

eg.

Code: Select all

Chart1.axes.bottom.setMinMax(DesiredSiderStartValue, DesiredSiderEndValue);
Please use this page for reference, the code is included in the page:
https://www.steema.com/files/public/tee ... roller.htm

Regards,
Marc Meumann