draw node images of TreeViewAdv unscaled

How can I achieve the node images of a TreeViewAdv to be drawn unscaled?

The images are taken from an image list and referred to by using the ImageList indexes.

During my trial phase, I found that many Syncfusion classes that allow to assign images, have ImageIndex properties but no Image property.

This is bad, because if there is no way to assign an image without an ImageList, then I have to cope with all the flaws of ImageList. For example, ImageList removes transparency from PNG images.

3 Replies

MU Murugan Syncfusion Team September 4, 2006 11:39 PM UTC

Hi Mario,

Thanks for your suggestion. We have already created a feature request regarding the same. Herewith I have attached the link to the Feature request.

Allow TreeNodeAdv to have an Image be directly assigned to it

Thanks for choosing Syncfusion products.

Regards,
Murugan P.S


MA Mario September 9, 2006 08:09 PM UTC

Does this mean, that it is currently not possible with the Syncfusion TreeView to draw treeview node images unscaled?


JK Joy K George Syncfusion Team September 12, 2006 07:04 AM UTC

Hi Mario,

Sorry for the delay in getting back to you.We were creating a sample for you.

You may draw unscaled images in nodes.For that you need to use Ownerdraw mechanism of TreeViewAdv.

1-Set the Property TreeViewAdv.OwnerDrawNodes=true;
2-Handle the event AfterNodePaint and draw the images directly using the Graphics object.

I have attached a sample for your reference.Please go through that and let me know ,if you need more assistance.

Regards,
Joy

Treeview_unscaled.zip

Loader.
Up arrow icon