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

Re: Scrolling/keeping textArea down



24.09.2025 00:49, Lee пишет:
On 9/23/25 1:41 PM, Lee wrote:
On 9/23/25 12:41 PM, Admin wrote:
23.09.2025 23:27, Lee пишет:
On 9/23/25 11:56 AM, Gianluigi wrote:
This simple project (attached) works here.
Perhaps containers are needed?

Your code works here too, Gianluigi.

But, containers are not needed. I moved the TextBox and Button outside of the HBox they were in, and the code still works.

I think the issue *may* be desktop environment related.


Well, here how it works on my home PC with Debian 13 LXQt and Gambas 3.20 or on any pc at my work with Debian 11, LXDE and Gambas 3.15:

https://allunix.ru/back/20250923_233606.mp4

I just installed a Debian 12 LXQt virtual machine with Gambas 3.18. With Gianluigi's code, I get the same odd behavior as what you show in your video. The .EnsureVisible method scrolls to a vertical position that is seemingly random.

The gb.gui component is triggering the loading of gb.gtk3 and gb.gtk3.x11 as neither gb.qt5 nor gb.qt6 are available with the base Gambas3 install on Debian 12.

Well, it appears that Qt6 is not available at all on Debian 12.

I installed gb.qt5, but gb.gui still prefers to select GTK3. When I explicitly choose to use the gb.qt5 component, .EnsureVisible works as expected.


First of all thank you very much for deep involvement. I appreciate that.

And yes, in the original message if this thread I said that I used .pos = .lenght and then .ensurevisibale.

So then I did nothing wrong.

Also in original message I've said "With all this differences in QT and GTK I can understand why" - that what I was talking about. It's not that I knew, it's just what I gathered from the documentation. I did not undertand it at first but now I do. It's, evidently, the simple fact that .EsureVisible does not work in GTK3. Qt is hardly a solution because the program should work on couple hundred of PCs where there's no Qt and would not be. Well, ok then. At least I'm not crazy and you see what I see, that already means  a lot! Thanks again.

Dmitry


Follow-Ups:
Re: Scrolling/keeping textArea downLee <t.lee.davidson@xxxxxxxxx>