[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QT5 ListBox Problem
[Thread Prev] | [Thread Next]
- Subject: Re: QT5 ListBox Problem
- From: Lee <t.lee.davidson@xxxxxxxxx>
- Date: Sat, 28 Feb 2026 00:25:14 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 2/27/26 7:19 PM, Benoît Minisini wrote:
Le 27/02/2026 à 21:25, Lee a écrit :Does the problem occur with the master branch?Yes, the issue persists on 3.21.99 409093b (master) with all three of those GUI toolkits. It occurs only if ListBox.ScrollBar is set to include Horizontal with either Scroll.Horizontal or Scroll.Both.I asked because I can't reproduce the problem. Can you send me a little project that shows the bug?
I've discovered that the issue occurs if ListBox.Scrollbar is set to include Scroll.Horizontal *prior* to ListBox.List being populated (which would include setting it via the IDE's property sheet). A project that shows the bug is very simple.
Merely add a ListBox to a form, set its Scrollbar property to None so it can be controlled programmatically, and then use just this code in FMain.class:
[code]
Public Sub Form_Open()
' ListBox1.ScrollBar = Scroll.Both ' Setting it here causes the issue
ListBox1.List = ["One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten"]
' ListBox1.ScrollBar = Scroll.Both ' Setting it here does not cause the issue
End
[/code]
--
Lee
--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
| Re: QT5 ListBox Problem | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| QT5 ListBox Problem | Safiur Rahman <isafiur@xxxxxxxxx> |
| Re: QT5 ListBox Problem | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: QT5 ListBox Problem | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: QT5 ListBox Problem | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: QT5 ListBox Problem | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |