Horizontal scrolling in a wx.RichTextCtrl

Posted by Sam on Stack Overflow See other posts from Stack Overflow or by Sam
Published on 2010-05-03T16:08:18Z Indexed on 2010/05/03 21:38 UTC
Read the original article Hit count: 222

Filed under:
|
|

I have a RichTextCtrl created as follows:

self.userlist = wx.richtext.RichTextCtrl(self, style=wx.TE_MULTILINE|wx.TE_READONLY|wx.HSCROLL)

It all works fine, except for the wx.HSCROLL style. If I change the RichTextCtrl to a regular TextCtrl, it correctly horizontal scrolls on long lines, rather than wrapping, but on the RichTextCtrl it wraps regardless. Is there an easy way to make it scroll horizontally? (I do, unfortunately, need the RichTextCtrl's featureset for this object.)

© Stack Overflow or respective owner

Related posts about wxwidgets

Related posts about wxpython