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 -- Posted via http://www.ruby-forum.com/.
Alex Fenton
2009-Feb-12 08:46 UTC
[wxruby-users] How to hide horizontal scrollbar in StyledTextCtrl?
Zhimin Zhan 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
Zhimin Zhan
2009-Feb-12 22:37 UTC
[wxruby-users] How to hide horizontal scrollbar in StyledTextCtrl?
Alex Fenton wrote:> stc.use_horizontal_scroll_bar = falseThanks, 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 -- Posted via http://www.ruby-forum.com/.