Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

822 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