We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

draw node images of TreeViewAdv unscaled

Thread ID:





48787 Sep 4,2006 07:50 PM UTC Sep 12,2006 07:04 AM UTC WinForms 3
Tags: Tools
Asked On September 4, 2006 07:50 PM UTC

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.

Murugan [Syncfusion]
Replied On 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.

Murugan P.S

Replied On 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?

Joy K George [Syncfusion]
Replied On 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.




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon