Jump to content
uniGUI Discussion Forums
55143681

How to use a bigger ico in UniTreeView?

Recommended Posts

See the image file,I use a UniTreeView and a UniImageList to display a item node's image,but I can only use a 16*16 ico,I want to use a bigger ico,how to use 32*32 ico?

2018-10-09_075148.png.f2229a1771143c95808bab16763f0200.png

 

Share this post


Link to post
Share on other sites

Add the following CustomCSS:

You will also need to change the image sizes for TUniNativeImageList to 32 and load 32px images.

Play around with the settings below to get the desired alignment for the text and elbow indicators.

.x-tree-icon {
    width: 32px;
    height: 32px;
    line-height: 32px;
}
.x-tree-elbow-img {
    width: 18px;
    height: 30px;
    line-height: 32px;
}
.x-tree-node-text {
     line-height: 24px;
}

 

opera_2018-10-09_11-06-56.png

bds_2018-10-09_11-09-06.png

Share this post


Link to post
Share on other sites
On 10/9/2018 at 5:10 PM, GerhardV said:

Add the following CustomCSS:

You will also need to change the image sizes for TUniNativeImageList to 32 and load 32px images.

Play around with the settings below to get the desired alignment for the text and elbow indicators.


.x-tree-icon {
    width: 32px;
    height: 32px;
    line-height: 32px;
}
.x-tree-elbow-img {
    width: 18px;
    height: 30px;
    line-height: 32px;
}
.x-tree-node-text {
     line-height: 24px;
}

 

opera_2018-10-09_11-06-56.png

bds_2018-10-09_11-09-06.png

works well ,thank you very much.

Share this post


Link to post
Share on other sites

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

×