[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling/keeping textArea down


23.09.2025 22:55, Lee пишет:
On 9/23/25 11:45 AM, Admin wrote:
[snip]>>>
So basically .Insert does not place a cursor to the end of the text in a textArea where it inserts.

I think that if you check the value of .Pos after an .Insert(), you will see that the cursor position is indeed changed appropriately.


yes, seems to be so.




When I add text to a TextArea with either .Insert() or the '&=' operator, I don't even need to call .EnsureVisible(). The text is scrolled to the bottom as needed.

And now I cannot reproduce that behavior. However, .EnsureVisible() works with GTK3, Qt5, and Qt6.


well...



[snip]>> So, there should be no need to
set .Pos explicitly prior to calling .EnsureVisible().

Have you tried not setting .Pos explicitly?


As I've said before, my problem seems to really be not about cursor position, i can check manually that it is where it needs to be, with or without setting .Pos. It's just that EnsureVisible doesn't scroll there. It seems to be scrolling randomly, I can't see any correlation. I'll be digging into this more.


Follow-Ups:
Re: Scrolling/keeping textArea downBruce Steers <bsteers4@xxxxxxxxx>
References:
Scrolling/keeping textArea downAdmin <admin@xxxxxxxxxx>
Re: Scrolling/keeping textArea downLee <t.lee.davidson@xxxxxxxxx>
Re: Scrolling/keeping textArea downBruce Steers <bsteers4@xxxxxxxxx>
Re: Scrolling/keeping textArea downgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: Scrolling/keeping textArea downAdmin <admin@xxxxxxxxxx>
Re: Scrolling/keeping textArea downAdmin <admin@xxxxxxxxxx>
Re: Scrolling/keeping textArea downLee <t.lee.davidson@xxxxxxxxx>
Re: Scrolling/keeping textArea downAdmin <admin@xxxxxxxxxx>
Re: Scrolling/keeping textArea downLee <t.lee.davidson@xxxxxxxxx>