The quest of Libraries data

At woke-up time, I decided to read about Libraries. So, I checked Roadmap to get in which Xojo Release it was implemented. The answer is:


As you can see, there is no link.

The Release Notes for Xojo 2025r3 have no entry for Libraries (as far as I can see, Search leads to nothing). There is no link to the Documentation for the full explanation about the new features (scarce information for the other entries, but it can be enough).

I decided to go to the Documentation via Internet, and pressed Cmd-K to get Library.
Very nice page and good stuff, but not related too Libraries (and I learned some things).

An now I will take my breakfast and do something else.

One day, I will search in the Blog where no Table of Contents exists.

Why this search ?

Because I discovered some days ago that we can ask Xojo for the width of the DesktopListBox individual Cells (NO: this is not ListBox1.ColumnWidths)

So, now when I export a ListBox contents to html in a Desktop application, I can set <td width= value with an accurate (the real) width number.

You may be looking for something like this blog post: Checking Out Xojo Libraries – Xojo Programming Blog

FWIW, you can get the widths from the background cell paint event and just store them in an array for later use. It’s a minor hit to get that info.

As for column widths, is something wrong with this that I’m unaware of?

var x as Integer = listInstance.ColumnAttributesAt(columnIndex).WidthActual
1 Like

My recollection was that function returned the value from the original input width string with the *’s and %’s expanded into real numbers. I feel like when I was making my draggable column listbox I found that I couldn’t rely on WidthActual if the user had resized a column…. But that was 10 years ago now.

That’s not been my experience. I use it pretty heavily in some places.
list_colwidths.xojo_binary_project.zip (5.5 KB)

1 Like