Stef Mientki wrote:
hello,
I've a TextCtrl (multiline, Rich2, Readonly), where text is
added line by line by the program.Now each time the bottom of the current view is reached, the
view jumps a whole page, and the new line is entered at the top.As soon as I click on the vertical scrollbar, the view is
corrected, i.e. a whole page is shown, with the last line
entered at the bottom.How can I get the correct view by code ?
(Refresh doesn't solve the problem).thanks,
Stef Mientki
Hi Stef
I don't know if the attached program does what you want, but give it a try.
The important line is -
self.ShowPosition(self.GetLastPosition())
HTH
Frank Millman
fm39.py (883 Bytes)