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
Solved

TCheckListBox always has one extra "blank" item at the bottom...

Posted on 2014-02-08
3
262 Views
Last Modified: 2014-02-09
I've got a little problem that's driving me batty - I populate my TChecklistbox with items properly (I think), but there is always an extra "blank" item at the very bottom of it. It doesn't hurt anything, but it looks sloppy. Has anyone ever ran into this issue before?

Thanks!
    Shawn
0
Comment
Question by:shawn857
3 Comments
 
LVL 31

Accepted Solution

by:
Marco Gasi earned 500 total points
ID: 39844992
Yes but it was not a TCheckListbox: i happened several years ago so I don't remember well but I know I have solved the issue in a brutal but efficient way: deleting le last item after having finished to fill the list.

But you could also try to clear the list items before to fill it so an eventually blank item added by default would be dropped.

Or you could post here the whoile code related to the list filling so we can take a look to see if you're missing something.
0
 
LVL 26

Expert Comment

by:Sinisa Vuk
ID: 39845460
If you fill item from code - always use: Box1.Items.Clear
Add string line without CR / LF. And make sure that you have not use padding.
0
 

Author Closing Comment

by:shawn857
ID: 39845788
Thank you Sir.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to convert wav to mp3 in delphi 9 221
Delphi - replicating a form 8 81
Reconfigure Delphi Install? 2 60
can i put an image from resource into image tag ? 6 26
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…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

840 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