C++ Multi-Column Listbox

Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jan 2007
Posts: 21
Reputation: iaaan is an unknown quantity at this point 
Solved Threads: 0
iaaan iaaan is offline Offline
Newbie Poster

C++ Multi-Column Listbox

 
0
  #1
Jan 9th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 1,495
Reputation: William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of William Hemsworth has much to be proud of 
Solved Threads: 123
Sponsor
William Hemsworth William Hemsworth is offline Offline
Nearly a Posting Virtuoso

Re: C++ Multi-Column Listbox

 
0
  #2
Jan 9th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 122
Reputation: marco93 is infamous around these parts marco93 is infamous around these parts marco93 is infamous around these parts 
Solved Threads: 12
marco93 marco93 is offline Offline
Junior Poster

Re: C++ Multi-Column Listbox

 
0
  #3
Jan 9th, 2009
Originally Posted by williamhemsworth View Post
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 390
Reputation: skatamatic will become famous soon enough skatamatic will become famous soon enough 
Solved Threads: 39
skatamatic skatamatic is offline Offline
Posting Whiz

Re: C++ Multi-Column Listbox

 
1
  #4
Jan 9th, 2009
Originally Posted by marco93 View Post
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum


Views: 1799 | Replies: 3
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC