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

Re: Scrolling/keeping textArea down


Also, in my main program it actually does not matter. When I scroll textarea down, I see my cursor in the end of the text, there it is, blinking, but EnsureVisible just doesn't scroll me there.

23.09.2025 22:34, Admin пишет:
Ok, so I just tested this in a new clean app.


I created a textArea filled with "all work and no play makes jack a dull boy" lines so that the right (and only) scrollbar would be, like, one-third of all text


Then I created a button:


Public Sub Button1_Click()

  TextArea1.Insert(" ")
  TextArea1.EnsureVisible

End


If I just press the button, nothing happens.

If I manually place a cursor in the bottom of a textArea and scroll it back up and then press a button, sure enough it scrolls right down.

So basically .Insert does not place a cursor to the end of the text in a textArea where it inserts.





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>