From: Kevin A. <al...@se...> - 2004-09-28 14:54:05
|
On Sep 28, 2004, at 7:30 AM, ni...@ja... wrote: > Quoting Kevin Altis <al...@se...>: > > >> wxWidgets bug >> >> http://sourceforge.net/tracker/? >> func=detail&aid=665381&group_id=9863&atid=109863 >> >> Use ScrollLines(-1). >> >> I've brought up this bug on wx-users many times in the past and it has >> never gotten any attention, so I think it may be time to just add a >> line to the appendText method to workaround it. AFAIK, this only >> impacts Windows. > > The WX devs dont seem to have time to fix that, I see you logged it > over a year > ago. > > With my setup [pythong 2.3.3, wxPython 2.5, PythonCard 0.8] the > ScrollLines(-1) > scrolls back 1 line. I need it to scroll back to line 1, the start, so > ScrollLines(-100) should always manage that. > > Thanks for your help > Nick. > Okay, what you want is different than the specified behavior of AppendText, so your solution or setInsertionPoint should work fine. There is actually mention of that issue in the doc string. If you don't want the display to change call Freeze() before you append the text and Thaw() afterwards. """Appends the text to the end of the text widget. After the text is appended, the insertion point will be at the end of the text widget. If this behavior is not desired, the programmer should use getInsertionPoint and setInsertionPoint.""" I just checked in the ScrollLines(-1) workaround for the TextArea component on Windows. ka |