Solved

Change ItemHeight of Treeview items

Posted on 2001-07-02
3
498 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

by:bengore
ID: 6244491
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
ID: 6244526

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
ID: 6247432
as nnbbb09 said
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

707 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