Solved

Change ItemHeight of Treeview items

Posted on 2001-07-02
3
452 Views
Last Modified: 2010-04-06
How do I change the ItemHeight of the items of a Treeview control? I'm using Delphi 4. I'm looking for a solution without OwnerDraw stuff.
0
Comment
Question by:bengore
3 Comments
 

Author Comment

by:bengore
Comment Utility
If my question is not clear: I want to add space between the items of a Treeview (a few pixel).
0
 
LVL 3

Accepted Solution

by:
nnbbb09 earned 50 total points
Comment Utility

I don't think there is a simple property on the treeview to do this. One workaround is to add an imagelist but simply increase the size of its height property and this will be reflected in the treeview. If you are using bitmaps on your treeview then you will need to add some extra space at the top and/or bottom to prevent them being stretched by the imagelist.

Jo
0
 
LVL 27

Expert Comment

by:kretzschmar
Comment Utility
as nnbbb09 said
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 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

13 Experts available now in Live!

Get 1:1 Help Now