[wxPython] wxTextCtrl character limits

I have a multi-line wxTextCtrl window I'm using as a log window
for output from a command line as well as error messages. It
seems that after 57749 characters, it won't accept
AppendText any more. Is that an intrinsic limitation
of wxTextCtrl (or the underlying RichEdit control)?

I'm using wxPython 2.2.1, Python 1.5.2 under Win98SE.

David

···

__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at
http://webmail.netscape.com/

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

Under Windows, I think that wxTextCtrl can be based on either the
RichEdit control, or the regular Windows Edit control, depending on
wxWindows library compile-time options. The standard windows Edit
control has the 64K or so character limit, the RichEdit control
doesn't. However, to exceed 64K characters with the RichEdit control,
there is a variable (MAX_CHAR or something like that) that must be
increased from the default value. Perhaps AppendText doesn't increase
that value as required.

I don't have Windows documentation or the wxWindows source code here so
I can't confirm the source of the problem.

Tony
amartin@varlog.com

···

On Wed, Jan 03, 2001 at 03:32:43PM -0500, dcfoxmail@netscape.net wrote:

I have a multi-line wxTextCtrl window I'm using as a log window
for output from a command line as well as error messages. It
seems that after 57749 characters, it won't accept
AppendText any more. Is that an intrinsic limitation
of wxTextCtrl (or the underlying RichEdit control)?

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users

wxWindows can use either. Normally wxTextCtrls don't need to have that much
text so wxTextCtrl defaults to the regular <64k edit control to save the
overhead. When you want to have more text use the wxTE_RICH style flag and
then it will use RichEdit and >64k is allowed.

···

On Wed, Jan 03, 2001 at 03:32:43PM -0500, dcfoxmail@netscape.net wrote:
> I have a multi-line wxTextCtrl window I'm using as a log window
> for output from a command line as well as error messages. It
> seems that after 57749 characters, it won't accept
> AppendText any more. Is that an intrinsic limitation
> of wxTextCtrl (or the underlying RichEdit control)?

Under Windows, I think that wxTextCtrl can be based on either the
RichEdit control, or the regular Windows Edit control, depending on
wxWindows library compile-time options. The standard windows Edit
control has the 64K or so character limit, the RichEdit control
doesn't.

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!

_______________________________________________
wxPython-users mailing list
wxPython-users@lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/wxpython-users