Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6801111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:03:35+00:00 2026-05-26T19:03:35+00:00

I am in the process of relearning Delphi as have not programmed much of

  • 0

I am in the process of relearning Delphi as have not programmed much of anything in years and have forgotten more than I ever learned! I have started with a simple file search routine and placing the found files in a multi-column listbox. The component I found was called MultiColListBox.pas off of Delphi3000.com. I have added a couple events to the sort routine and fixed an empty listbox error when enabling Sort.

When has two columns defined using this code and each is set for a length of 20, and in the first column your text (item) is say 100 characters long and the first item in the second column is say 20 characters long, you will see underneath the trailing whitespace text from the foirst column’s text.

In the component, (Link to Code below), where the columns are drawn;

procedure TMultiColListBox.ListBoxDrawItem(Control : TWinControl;
                                       Index : Integer;
                                       Rect : TRect;
                                       State : TOwnerDrawState);

I have tried setting the brush to solid, and everything else I could think of. I finally realized that it is drawing the coordinates of the text with nothing trailing. Therefore we are getting a transparent effect which is not desired.

Usually I am overlooking something simple, so far, (can’t see the forest for the trees). What might fix this issue? (This component has many items not working so lots of work but a great re-learning experience.

LINK To CODE: http://www.delphi3000.com/articles/article_3360.asp
MultiColListBox

Thanks!

JOhn

PS. I could not figure out how to format a cut and then pasted long code set or even the entire function to this forum, (short ones easy as above) so I provided the link to the compoenent code on Delphi3000.com.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:03:35+00:00Added an answer on May 26, 2026 at 7:03 pm

    Rather than fighting with this this 10 year old code you should simply switch to list view, TListView and set ViewStyle to vsReport. This gives you a multi-column list using the native, modern-day Windows list control.

    This doesn’t directly answer your question, but I believe it solves your problem far better than the code you are trying to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a process that needs the Primary Key ID of a newly added
I'm re-learning c++ (I have 10 years Java experience) and I'm also learning Qt
I have a main process that spawns Processes and then those Processes add jobs
Process process = new Process(); ProcessStartInfo psi = new ProcessStartInfo(@C:/PsExec.exe); psi.UseShellExecute = false; psi.RedirectStandardOutput
Process A is calculating values for objects a1, a2, a3 etc. and is sending
My process is as follows: User logs into web app and this drops an
Java process control is notoriously bad - primarily due to inadequate support by the
A process to quickly detect whether there is data in a given worksheet or
I process a lot of text/data that I exchange between Python, R, and sometimes
Transaction (Process ID 63) was deadlocked on lock | communication buffer resources with another

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.