943,733 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 4686
  • C++ RSS
Jan 9th, 2009
0

C++ Multi-Column Listbox

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
iaaan is offline Offline
23 posts
since Jan 2007
Jan 9th, 2009
0

Re: C++ Multi-Column Listbox

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.
Reputation Points: 1429
Solved Threads: 129
Posting Virtuoso
William Hemsworth is offline Offline
1,542 posts
since Mar 2008
Jan 9th, 2009
0

Re: C++ Multi-Column Listbox

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.
Last edited by marco93; Jan 9th, 2009 at 1:13 pm.
Reputation Points: -76
Solved Threads: 14
Junior Poster
marco93 is offline Offline
132 posts
since Apr 2008
Jan 9th, 2009
1

Re: C++ Multi-Column Listbox

Click to Expand / Collapse  Quote originally posted by marco93 ...
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.
Reputation Points: 352
Solved Threads: 109
Master Poster
skatamatic is offline Offline
775 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Topics for project in VC++.Help
Next Thread in C++ Forum Timeline: Hashing Codes





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC