[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: Mon, 2 Mar 2026 11:43:52 -0500
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 3/2/26 11:33 AM, Lee wrote:
On 3/1/26 6:39 PM, Bruce Steers wrote:But i guess if Wrap = True then horizontal scrollbar will not even be used,. If you want to use any Horizontal scrollbar then Wrap must surely be False.Yes, of course. The logic flow of the code is correct. Only if .Wrap is False does it test if the Scroll.Horizontal bit is set and then act on that condition if it is.I was merely pointing out that not setting $hView.AutoResize = False causes the text in the ListBox List to be displayed properly. However, I've also found out that if $hView.AutoResize is not set to False, the horizontal scrollbar is not displayed even if it should be.
I may have found a possible solution. I changed the ResizeRows() subroutine (at line 392) of ListBox.class to be this: [code] Private Sub ResizeRows() $hView.Rows.H = -1 If $hView.ScrollBar And Scroll.Horizontal Then $hView.Columns[0].W = -1 $hView.Refresh 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> |
| Re: QT5 ListBox Problem | Lee <t.lee.davidson@xxxxxxxxx> |
| Re: QT5 ListBox Problem | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: QT5 ListBox Problem | Lee <t.lee.davidson@xxxxxxxxx> |