Jump to content
David Schwartz

gridlines in listboxes

Recommended Posts

It seems like the only list-type control that gives you the option of showing lines is TListView.

 

Is there a simple way of adding grid lines to other common list controls, like TListBox? (I don't do much with custom drawing stuff.)

Share this post


Link to post
31 minutes ago, dummzeuch said:

What about TStringGrid / TDrawGrid?

A listbox is really easy to use. A stringgrid is not a simple replacement for a listbox.

Share this post


Link to post

I don't really see much of a difference between using a listbox and using a one column string grid.

Share this post


Link to post

I'm asking about how to add lines to list-like controls. TListView has a checkbox. TListBox has nothing. A lot of other libraries have simlar types of list controls and none of them offer lines either.

 

I'm just curious how one would go about doing that. Saying "use something else" isn't addressing the question, but it may be an option in some circumstances.

Share this post


Link to post

Use a list view. Part of problem solving is exploring the problem space and finding the best solution, given the pros and cons of all possible options. Deciding on the solution first and then trying to force it to work is not the way to solve problems. 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×