wxStyledTextCtrl

Is there any way of disabling the vertical scrollbar in a
wxStyledTextCtrl()? I need finer control on how the user scroll the text.

/Jesper

···

--
Jesper Eskilson
Virtutech
http://www.virtutech.com

Jesper Eskilson wrote:

Is there any way of disabling the vertical scrollbar in a
wxStyledTextCtrl()? I need finer control on how the user scroll the text.

No, but you can replace it with a different scrollbar with SetVScrollBar.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn <robin@alldunn.com> writes:

Jesper Eskilson wrote:
> Is there any way of disabling the vertical scrollbar in a
> wxStyledTextCtrl()? I need finer control on how the user scroll the text.

No, but you can replace it with a different scrollbar with SetVScrollBar.

Ok, great. But the new one doesn't seem to resize properly. It's just
sitting there 14x140 pixels and doesn't follow the wxStyledTextCtrl when
resized.

/Jesper

···

--
Jesper Eskilson
Virtutech

Jesper Eskilson wrote:

Robin Dunn <robin@alldunn.com> writes:

Jesper Eskilson wrote:

Is there any way of disabling the vertical scrollbar in a
wxStyledTextCtrl()? I need finer control on how the user scroll the text.

No, but you can replace it with a different scrollbar with SetVScrollBar.

Ok, great. But the new one doesn't seem to resize properly. It's just
sitting there 14x140 pixels and doesn't follow the wxStyledTextCtrl when
resized.

Right. YOu have to manage its size and position yourself somehow. All the SetVScrollBar does is tell wxSTC to use your scrollbar instead of its own.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!