There are some cases where I would like to have a TScrollbox with only a vertical scrollbar and this scrollbar should be always there, even if there is nothing to scroll (representation like a disabled TScrollbar). In TMemo and TStringGrid this behaviour can be achieved by setting
ScrollBars:= ssVertical.
It seems it is not possible to do this with TScrollbox.
If I set AutoScroll to false then the existence of Scrollbars depends on the fact if scrolling was needed while design time (Controls placed inside need more space). For me a strange behaviour. I would expect the existence of the scrollbars only (user)defined by HorzScrollBar.Visible and VertScrollBar.Visible.
Do I miss something? Is there a further setting to accomplish such a behaviour? Or is it just not possible with TScrollbox?
Why I need it: When the Scrollbars are dynamically shown and hidden, then the Clientwidth changes accordingly, which might require replacement of child controls. In some cases this is very nasty for both me as programmer and in a visual way for the user.
Thanks for Your Help!
System: Win7/64
Lazarus 1.6
FPC 3.0.0