FMX: Setting TScrollBar thumb size by changing ViewportSize reduces maximum settable value


Add a TScrollBar to a form in FMX and leave min and max at the default values 0 and 100. Set ViewportSize to 50. This makes the thumb half then length of the scroll bar. However, the value for the scroll bar can now only be set between 0 and 50. It seems that the maximum settable value is Max – ViewportSize. How can I set the thumb size while still being able to set values between 0 and Max? I know that I could set Max to 150 (Max + ViewportSize) but I’m already using Max in my code to determine what the maximum settable value is.
I note that the documentation is no help at all. It doesn’t mention this issue and also incorrectly states that ViewportSize is in pixels.

Comments are closed.