Java Tree Control - how to set indent?

Status
Not open for further replies.

BlackHex

Ars Tribunus Angusticlavius
9,638
Subscriptor++
Yeh that would make sense, however it is the intent before the line that I really want to change - i.e. the distance from the left hand edge of the tree to the point at which the branch begins.

tree_indent.gif


maybe this is as you sugest but I just wanted to be clear as the project has a fixed icon size that I can't change...

Cheers for the reply :)
 

R2P2

Ars Praefectus
3,783
Subscriptor
The distance indicated in your image seems to be the distance from the middle of one icon to the middle of the other, so it's still an icon size issue. You could make the image off-centered, so that it would look like the line wasn't under the middle of the image, if you know what I mean. If you have this:
Code:
-----------
|  image  |
-----------
     |
     |
you could change it to this:
Code:
-----------
|image    |
-----------
     |
     |
But I really have no idea how to make the line not be centered on the actual width of the icon. :(
 
Status
Not open for further replies.