[wxPython] wxTextCtrl suggestion ScrollEnd()

The problem is that the text isn't necessarily getting added at the end of
the control (messages can arrive out-of-order and need to be inserted into
the middle).... just a second! Good lord, appending a null string to the
control even if you're adding the text in the middle before that does in
fact work as ScrollEnd() :o) . Very cool, very hackish :o) .

Thanks,
Mike

···

-----Original Message-----
From: Robin Dunn [mailto:robin@alldunn.com]
Sent: Thursday, October 19, 2000 3:31 PM
To: wxpython-users@lists.sourceforge.net
Subject: Re: [wxPython] wxTextCtrl suggestion ScrollEnd()

----- Original Message -----
From: "Mike Fletcher" <mfletch@tpresence.com>
To: "'wxPython Users (E-mail) '" <wxpython-users@lists.sourceforge.net>
Sent: Thursday, October 19, 2000 11:54 AM
Subject: [wxPython] wxTextCtrl suggestion ScrollEnd()

I'm doing the classic chat-window layout, a scrolling "log" of the chat,
with a seperate entry box below for adding new text...

Currently I'm doing some ugly hackery to display the last three lines if

the

If all you're doing is adding text to the end then
textctrl.AppendText("text") will keep the end of the text visible.

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

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