[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Scrolling/keeping textArea down
[Thread Prev] | [Thread Next]
- Subject: Re: Scrolling/keeping textArea down
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Tue, 23 Sep 2025 17:15:00 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Tue, 23 Sept 2025 at 17:07, Admin <admin@xxxxxxxxxx> wrote: > 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 Maybe send an example project that has the issue. The following code(s) works as expected for me, i can scroll anywhere and move the cursor then the following code jumpot to the end of the doc.. ' TextArea1.Pos = TextArea1.Length ' TextArea1.Pos = TextArea1.Text.Len TextArea1.Pos = String.Len(TextArea1.Text) TextArea1.EnsureVisible TextArea1.SetFocus Your problem seems unusual, so an example project might help us (or you) solve the problem. Respects BruceS
Re: Scrolling/keeping textArea down | Lee <t.lee.davidson@xxxxxxxxx> |
Scrolling/keeping textArea down | Admin <admin@xxxxxxxxxx> |
Re: Scrolling/keeping textArea down | Lee <t.lee.davidson@xxxxxxxxx> |
Re: Scrolling/keeping textArea down | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Scrolling/keeping textArea down | gbWilly <gbWilly@xxxxxxxxxxxxxx> |
Re: Scrolling/keeping textArea down | Admin <admin@xxxxxxxxxx> |
Re: Scrolling/keeping textArea down | Admin <admin@xxxxxxxxxx> |
Re: Scrolling/keeping textArea down | Lee <t.lee.davidson@xxxxxxxxx> |
Re: Scrolling/keeping textArea down | Admin <admin@xxxxxxxxxx> |
Re: Scrolling/keeping textArea down | Lee <t.lee.davidson@xxxxxxxxx> |
Re: Scrolling/keeping textArea down | Admin <admin@xxxxxxxxxx> |