Jason Cipriani
2008-06-30 07:42:19 UTC
I'm trying to disable the horizontal scrollbar, and *always* show the
vertical scrollbar (no matter what) in a TScrollBox.
The AutoScroll property doesn't seem to work as documented, or I'm reading
the documentation wrong.
When I set AutoScroll to false the scrollbars, of course, don't appear.
However, I'm not sure how to make them appear manually. The documentation
says "use the HorzScrollBar and VertScrollBar properties to set scroll bar
visibility" -- but I'm not sure what this means because those properties are
TScrollBars, not bools. The documentation for VertScrollBar reads "use
VertScrollBar to hide, show, or manipulate the vertical scroll bar for the
scrolling windowed control". I'm not sure what that means either, for the
same reason, and the example code in the documentation doesn't demonstrate
that technique. The obvious thing is to set the Visible property of the
horizontal and vertical scrollbars accordingly, but this property seems to
have no effect on their visibility. How do I control the visibility of
scrollbars in a TScrollBox?
Thanks,
Jason
vertical scrollbar (no matter what) in a TScrollBox.
The AutoScroll property doesn't seem to work as documented, or I'm reading
the documentation wrong.
When I set AutoScroll to false the scrollbars, of course, don't appear.
However, I'm not sure how to make them appear manually. The documentation
says "use the HorzScrollBar and VertScrollBar properties to set scroll bar
visibility" -- but I'm not sure what this means because those properties are
TScrollBars, not bools. The documentation for VertScrollBar reads "use
VertScrollBar to hide, show, or manipulate the vertical scroll bar for the
scrolling windowed control". I'm not sure what that means either, for the
same reason, and the example code in the documentation doesn't demonstrate
that technique. The obvious thing is to set the Visible property of the
horizontal and vertical scrollbars accordingly, but this property seems to
have no effect on their visibility. How do I control the visibility of
scrollbars in a TScrollBox?
Thanks,
Jason