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

Re: Scrolling/keeping textArea down (episode III)


29.09.2025 15:52, Gianluigi пишет:
Il 29/09/25 01:43, Benoît Minisini ha scritto:
I have no idea what you are talking about. Again, QT component code and GTK+ component code are not related at all, and I only fixed the GTK+ components. Nothing changed in the QT component.


@Benoit
I mentioned it here with an attached image:
https://lists.gambas-basic.org/archive/user/2025-09/0000083.html

@Admin
Before Benoit's intervention, Lee and I had chosen this code, which works for all libraries:

[code]
Public Sub Button1_Click()
  ' chosen as the final code
  If TextBox1.Text Then TextArea1.Text &= "\n\n" & TextBox1.Text
  TextBox1.Clear
  Wait ' or Wait 0.1
  TextArea1.SetFocus ' <--- THIS
  TextArea1.EnsureVisible

End
[code]

Regards
Gianluigi




But it does not, and it was my code initially, which made me write this letter in the first place. I used SetFocus and EnsureVisible, and it didn't work. so I started this thread. I have not stressed this out enough maybe, since having SetFocus and not having it made no difference, but I tried it. And having two new strings (\n\n) was also in my code before I started the thread. All this does not work, and why should it, if we now know what causes it and obviously with this behavior of gtk_text_view_scroll_mark_onscreen there just can't be a workaround. The fix is already there, I just can't use it for now. Everything that was obvious to try - I tried. Like saving all the text into a variable and then clearing the area and inserting it back. No use.

Dmitry


References:
Scrolling/keeping textArea down (episode III)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Scrolling/keeping textArea down (episode III)Lee <t.lee.davidson@xxxxxxxxx>
Re: Scrolling/keeping textArea down (episode III)Gianluigi <gradobag@xxxxxxxxxxx>
Re: Scrolling/keeping textArea down (episode III)Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Scrolling/keeping textArea down (episode III)Gianluigi <gradobag@xxxxxxxxxxx>