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

Re: Scrolling/keeping textArea down


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.


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.

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

Have you tried not setting .Pos explicitly?


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: Scrolling/keeping textArea downAdmin <admin@xxxxxxxxxx>
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>