How to hide horizontal scrollbar in StyledTextCtrl?

Hi,

The StyledTextCtrl sample (samples\scintilla.rb) shows the horizontal
scrollbar by default, even there is no text in the editor. How to turn
off that option?

PS. The doc for StyledTextEvent is missing,
http://wxruby.rubyforge.org/doc/styledtextevent

Thanks,
Zhimin

Zhimin Z. wrote:

The StyledTextCtrl sample (samples\scintilla.rb) shows the horizontal
scrollbar by default, even there is no text in the editor. How to turn
off that option?

stc.use_horizontal_scroll_bar = false

PS. The doc for StyledTextEvent is missing,
http://wxruby.rubyforge.org/doc/styledtextevent

Thanks for pointing out the broken link, it should be to:

http://wxruby.rubyforge.org/doc/styledtextevent.html

alex

Alex F. wrote:

stc.use_horizontal_scroll_bar = false

Thanks, Alex.

What I really wanted was to show horizontal scroll bar as needed,
following your reply, I added

  set_scroll_width(100)

That seemed solved my problem.

The default scroll width (calling get_scroll_width) was set 2000.

Regards,
Zhimin