Multiple column ListBox
-
Hi All, I want to display some data in multiple column ListBox. In 1st column I want to display Attribute-Name and in 2nd column Attribute-Value. What I need to Do? I’ve a dialog-box created, in which I added a ListBox Control. Any suggestions are welcome Thanks, -- Sumit
-
Hi All, I want to display some data in multiple column ListBox. In 1st column I want to display Attribute-Name and in 2nd column Attribute-Value. What I need to Do? I’ve a dialog-box created, in which I added a ListBox Control. Any suggestions are welcome Thanks, -- Sumit
You need to Use a List View.... Best Regards.... Carlos Antollini. Sonork ID 100.10529 cantollini
-
Hi All, I want to display some data in multiple column ListBox. In 1st column I want to display Attribute-Name and in 2nd column Attribute-Value. What I need to Do? I’ve a dialog-box created, in which I added a ListBox Control. Any suggestions are welcome Thanks, -- Sumit
Altough I agree with Carlos in that you're better off using a list view control, still there's a feature of list boxes that could suit your needs, namely tabstops, which work pretty much the same as user-defined tabstops in a word processor. For instance, if your first attribute name was "Age" and its corresponding value was "30", you would have to write something like
int tabs[]={60,60};
m_listbox.SetTabStops(2,tabs); //set tabstops positions
m_listbox.AddString("Age\t30"); //different "columns" separated by "\t"Hope this helps. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo