Solved

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

Posted on 2014-02-08
3
257 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 30

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 25

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 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

18 Experts available now in Live!

Get 1:1 Help Now