Solved

Multiple columns in Listboxes

Posted on 1998-03-03
2
210 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
2 Comments
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

831 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