Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView Custom Drawing - item height?

Status
Not open for further replies.

gavinnosler

Programmer
Aug 21, 2004
10
US
I'm custom drawing items in a TListView. I can't figure out how to change the height of a ListView item. Is there some type of way to specify a custom height for each ListItem? I've searched around and found some methods, but they're all hacks. Like changing the font size, or creating a blank imagelist, setting its height to what you want, and adding that as the ListView's StateImages. I tried the last method and it worked, but I kept getting 'division by zero errors'. Is there a way to tell each ListItem what height you want it to be? Or if not, a way to change the height for all list items?

Thanks for any help on this. I've been fussing with this darn control for 2 days now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top