Hey, I am trying to replicate a sort of Windows Media Player type library and was wondering if there was such a thing (or an equivalent) as an Multi-Column Listbox.

Currently, I have the data coming in but storing them into 3 different listboxes (Artist, Title, Album). This works at the moment, however, when it comes to sorting, it makes it near impossible as none of this list boxes are linked. I was wondering if there was a way I could put columns in a listbox so that I could have all that data on the row.

I notice theres a columns option in Listboxes but believe that column 2 only gets used when column 1 is full.

Column 1 Column2 Column3
Row1 Artist Title Album
Row2 Artist Title Album


I am using Borland C++ Builder.

Any help at all would be greatly appreciated on displaying the data this way, or in any other way.

Thanks, Ian

I think what your looking for is a grid control, not a list box. They can be tricky to understand, but with the help of google, it shoulden't be too hard. Here is a good example on how to make one.

Hope this helps.

I
Here is a good example on how to make one.
.

No, it's a very bad example, because grid controls are native in Win32 and you don't need to re-invent the wheel.
And here, it's not a grid, but a lv.

No, it's a very bad example, because grid controls are native in Win32 and you don't need to re-invent the wheel.
And here, it's not a grid, but a lv.

Nothing wrong with re-inventing the wheel, so long as its either better or you learned something from it.

Comments
Very true :)
This article has been dead for over six months. Start a new discussion instead.