Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Multiple columns in Listboxes

Posted on 1998-03-03
2
Medium Priority
?
237 Views
Last Modified: 2010-04-06
Hi,

Presumably I set the columns to more than 1 for a multiple column listbox, but how do I get data into the columns and how do I activate the horizontal scroll bar.

Thanks

Chris
0
Comment
Question by:ChrisBerry
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 200 total points
ID: 1360045
This should work, if not give a sign :

Set the TabWidth property in the ListBox property editor.
e.g.  if your listbox is 300 pixels, set the TabWidth to 100 or so.

When you add items to the listbox insert &Tabs" - ^I for example:

ListBox1.Items.Add('Column1'^I'Column2'^I'Column3');

PS. I is capital i !!

Regards, Zif.

0
 

Author Comment

by:ChrisBerry
ID: 1360046
Thanks,

I now understand Delphi columns in Listboxes. Coming from an Access perspective, Lisboxes can have true columns like a Grid control and I was expecting similar on reading that multi column was a property of the Delphi Listbox.

Regards

Chris

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question