Hi,
I look for a text control that every line having a fixed number of
characters(for example 24). I will use monospace font. And I also want
it to wrap on characters. Is it possible ?
Thanks
Hi,
I look for a text control that every line having a fixed number of
characters(for example 24). I will use monospace font. And I also want
it to wrap on characters. Is it possible ?
Thanks
tc = wx.TextCtrl(..., style=wx.TE_CHARWRAP|wx.TE_MULTILINE)
ta = wx.TextAttr(...)
tc.SetDefaultStyle(ta)
You can then discover how wide characters are, then set the width of
your text control based on how wide the characters are.
You could also write your text-control-like thing if you only needed to
display and scroll using wx.DCs, drawing the characters by hand, and
using a wx.ScrollBar .
- Josiah
"Murat Erten" <murerten@gmail.com> wrote:
I look for a text control that every line having a fixed number of
characters(for example 24). I will use monospace font. And I also want
it to wrap on characters. Is it possible ?