Solved

Multiple columns in Listboxes

Posted on 1998-03-03
2
201 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now