Jump to content
Sign in to follow this  
Willicious

TTreeView arrows appearing too small

Recommended Posts

The arrows on this treeview are way too small:

 

image.png.7fc77115730c8703c63c08526e2f67e1.png

 

I added another treeview as a test, and the arrows are the correct size:

image.png.238821bfffd8735d5b19ec40ef5710eb.png

 

So, Delphi's treeviews are clearly capable of decent sized arrows. The problem is that the first treeview has all of the relevant code linked to it, the second is there purely for testing/demonstration purposes. I'm not sure exactly whats been done to reduce the size of the arrows in the first example. Removing the custom images (i.e. the little blue dot) doesn't help, instead there is just blank space where the images were.

 

The joys of working on existing code that you had nothing to do with! 🙂

Share this post


Link to post

Found out it's definitely to do with the "Images" properties, but no amount of tweaking will yield good results. The "...." part of the node is too big, and the clickable area is actually just to the right of the actual arrow.

Share this post


Link to post

OK, managed to fix this! The images needed to be slightly larger (24 x 24 instead of 16 x 16), and the indent needed to be made slightly smaller (16 rather than 19). Those values result in larger arrows and smaller "....":

image.png.fa0badbbd3a8c51361ff338a19f7d8bc.png

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
Sign in to follow this  

×