Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-02-08
3
Medium Priority
?
285 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 2000 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 28

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

963 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