I’m using a Listbox to hold all the filenames in a specific folder. I got that part working. Now I want to be able to grab the right side of the listbox and change it’s width by dragging the mouse. Usually a Slider component is used for this but the Slider I see is a different kind of Slider.
Any help appreciated on how to dynamically change the width of the listbox.
Drag imSplitter.xojo_binary_code to your projects folder (or copy/paste it from the example project)
I guess I’m not copying the file to the right place because I don’t see any “Project Controls” section in my Library. I guess I don’t know where my projects folder is ?
You create a very small Picture;
You set the Font Name / Font Size the same as your ListBox,
You scan all Columns Contents and asn the Picture.Graphics what width it takes and keep the largest value,
until the last Column/Row.
Of course, it takes time if you have millions of row / hundred of Columns / j-you use an OnDemand display Canvas.