wxTextCtrl

This problem was introduced in 2.4.x IIRC and impacts the wxTE_RICH2 style
on Windows; wxTE_RICH is wacky (official technical term) at least on Win2K
so I never use its evil self. The workaround I came up with is to call
ScrollLines(-1) after an AppendText call. Note that ScrollLines doesn't help
with the wxTE_RICH style, but that's because the underlying native control
is evil as mentioned above :wink:

ka

路路路

-----Original Message-----
From: Robin Dunn
Sent: Tuesday, September 30, 2003 9:11 AM
To: wx-users@lists.wxwindows.org; wxPython-users
Subject: Re: [wxPython-users] wxTextCtrl

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!

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