Appears on conditions. Do you fullfil them ?
Check with the documentation, but no relative width must be used for columns (or they willl not appears); that means, no * nor % in the width values… and of course, the total width of all columns must be > than the window width !
Shrink your window to check.
Prerequisite: Have ListBox HorizontalScrollBox set to True.
Sorry if I wasn’t clear. The problem is the vertical scrollbar not appearing, but instead it is showing a remnant of a horizontal scroll bar at the bottom right of the listbox.
Also, by default, sincce some years, Scrollbar disappears when not used (if my memory is correct). Moving the cursor there make it reappear.
Check System Preferences to validate my (very bad) memory.
I have run Disk Utilities repair, I have restarted the mac, I have upgraded to Xojo 2024 r2.1. Still the same. I will try to isolate into a smaller app - but that always takes time.
It is just standard DesktopListbox - not subclassed. I’m using columnAttributes to set the columns up, but nothing special, all fixed width bar one with a “*”.
I’ve not tried NSTableView as listbox has always worked for me before.
You mean a deprecated listbox rather than a desktopListbox. No, I haven’t, as many of the functions I use are desktopLIstbox functions - like columnAttributes.
Although the available properties seem to be quite different in each.
Anyway, I seem to have tracked down the culprit, though I can’t say I can understand it.
I had a calculated property that was checking the listbox.height and if different to the sent value, was resetting the height to the value. I think this was used previously to stop the resize events occurring when setting the same height. For some reason, that I can’t track down as it is not called by anything, this was setting the listbox height to zero when the containerControl holding the listbox was constructed and embedded. Subsequent resetting to the correct height ended up with the strange horizontally mounted vertical scrollbar.
I’ve removed this property and now the listbox scrollbar is correct. I’ve tried to recreate the issue in a different project, but can’t get it to re-appear.