| | |
C++ Multi-Column Listbox
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jan 2007
Posts: 21
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Mar 2008
Posts: 1,495
Reputation:
Solved Threads: 123
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.
Hope this helps.
![]() |
Similar Threads
- multiColumn control passing values to listbox and back (ASP.NET)
- Data Grid and Listbox (VB.NET)
- Select files in a listbox (Python)
Other Threads in the C++ Forum
- Previous Thread: Topics for project in VC++.Help
- Next Thread: Hashing Codes
Views: 1799 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file format forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






