[wxPython] Scrollbars in wxSTC

Hi Neil and all,

There were some comments about scrollbars in wxSTC
some time ago. People were speaking about the horizontal
scroll bar. I will speak about the vertical scrollbar.

The vertical scrollbar appears or disappears on the control according
to the number of lines. I think this is a mistake.
The scrollbar should always be visible, but enabled or disabled as a
function of the numbers of lines. In that way, the text width area is always
constant.

Sometimes, you don't know the amount of text (lines) that will be
written out. If you are using you own text formatting ,
you need to know the width between the left and right margin.
With a visible/not visible vertical scrollbar, this width varies.
It may be different before and after the text has been
displayed.

Jean-Michel Fauth, Switzerland

Jean-Michel:

The vertical scrollbar appears or disappears on the control according
to the number of lines.

   I added a setting to remove the vertical scrollbar recently but this was
after 1.48 which is the version currently in wxWindows.

Sometimes, you don't know the amount of text (lines) that will be
written out. If you are using you own text formatting ,
you need to know the width between the left and right margin.
With a visible/not visible vertical scrollbar, this width varies.
It may be different before and after the text has been
displayed.

   I can't see how making the scrollbar visible but disabled benefits you.
If you want the window to be able to show a particular width of text then
add the scrollbar width to the width needed for your text.

   Neil