Do Delphi 6 or later versions have an enhanced ListBox?

Posted on 2009-02-11
Last Modified: 2013-11-23
Dear Experts,
A short question which I'm sure you can all answer with your eyes closed!

I am still using Delphi 5 with its rather limited ListBox, which has always irritated me.
Granted I have used 3rd Party enhanced ListBoxes (e.g. the Delphi Free Stuff one) that do the job fine but it would be nice to have it built-in to Delphi.

Do Delphi 6, 7 or later versions incorporate an enhanced version of this?
For example:
It should have multiple columns and adjustable width column headers?
The ability to adjust widths if you click on the divider
Sort by the column you click on as well as display a "sorting symbol" in the column header

I suppose the Delphi 5 one was based on what Windows 98 had in a DLL somewhere, so perhaps the answer depends on whether Windows 2000 or XP have a better ListBox!

Question by:WinRat
    LVL 19

    Expert Comment

    It seems you are looking for a TListView, not a TListBox
    LVL 19

    Expert Comment

    I did a quick check, the TListView component is already available in Delphi 5. It's on the Win32 tab, set the ViewStyle property to vsReport to get the behavior you are describing.

    Author Comment

    Hi MerijnB,

    Actually I should I have clarified that I do use TListView on occasion but I tend to use TListBox for quickly-thrown-together test programs, you know 15-minute apps! I also find I have to delve into the Help to get going with the ListView, whereas the ListBox is as easy as can be.

    Anyway I still would like to know whether the TListBox was improved in later Delphi versions. During my searching I read that D6 had introduced a virtual listbox style so maybe there were other enhancements made too.

    If no-one else answers by tomorrow afternoon, to give them a fair chance, I'll award you the points.

    LVL 19

    Accepted Solution

    No real additions up to D2006 (which I'm using currently), some things like you can influence how auto completion works. I think virtual style is the biggest change since D5. Certainly no things like column headers like you describe.

    Author Closing Comment

    Since you are using  Delphi 2006 I think that's good enough for me to go with your answer.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    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…
    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…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

    779 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

    12 Experts available now in Live!

    Get 1:1 Help Now