İlgi: multiline text control with a fixed maximum character on a line

Thank you.
I will try that.
It is a normal text control really. All I want is to fix the number of
the characters on a line.

···

2006/10/15, Josiah Carlson <jcarlson@uci.edu>:

"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 ?

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