wxTextCtrl

Thanks!

This is what I'm currently doing after each append text call:

if sys.platform == WIN:
    position = textCtrl.GetInsertionPoint()
    textCtrl.ShowPosition(position - 1)

and it seems to be working.

/Susanne

···

On Tue, 30 Sep 2003, Robin Dunn wrote:

Susanne Lefvert wrote:
>
>> Susanne Lefvert wrote:
>>
>>> Does anybody else experience problems with wxTextCtrl and
>>> scrolling?
>>>
>>> self.TextOutput = wxTextCtrl(self, self.textOutputId, "", style=
>>> wxTE_MULTILINE|wxTE_READONLY|wxTE_AUTO_URL|wxTE_RICH)
>>>
>>> Sometimes, when I do self.TextOutput.AppendText(), no text is
>>> visible in the text ctrl (it has scrolled too far). Any
>>> suggestions?
>>>
>>
>> You may want to ask on wx-users about this.
>>

Interestingly this same question was asked by someone else just a few
hours ago. Here is Vadim's response:

Vadim Zeitlin wrote:
> On Tue, 30 Sep 2003 13:12:19 +0200 Andrei Fortuna > Vadim Zeitlin wrote:
>> On Tue, 30 Sep 2003 13:12:19 +0200 Andrei Fortuna <andreif@mail.dntis.ro> wrote:
>>
>> > all is fine until I add a new line when the window is full. Then all
>> > existing lines are scrolled up and the window is blank.
>>
>> AFAIK this is the native controls behaviour. Maybe it's possible to change
>> it somehow but I don't know how and am reluctant to touch this code to be
>> honest because there are so many workarounds for different richedit 1/2/3
>> controls bugs that the chance of breaking something while fixing this is
>> very high.

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

---------------------------------------------------------------------
Please read http://www.wxwindows.org/mlhowto.htm before posting.

To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wx-users-help@lists.wxwindows.org