I have a plain TreeView with a few nodes, some of them are parent, some others aren’t parent nodes. The parent nodes get the folder icon while the others get the document icon. It happens I don’t want any icon at all, but I can’t get rid of the icons.
Hi Tiago & Alex,
new properties TreeView.HideNodeImages and TreeNode.HideNodeImage are now available (build 1.2.72, logged as WJ-7670).
Best regards
Frank
Hi Frank,
Thanks for the enhancement. It works all right.
As far as I can see, nodes without an image are left aligned with the image of the other nodes.
Hi Alex and Tiago,
we will introduce new properties TreeView.HideNodeImages and TreeNode.HideNodeImage to allow
control on either the TreeView or individual node level.
So there will be no need for a “hack” anymore.
I have logged WJ-7670 for it.
Best regards
Frank
Dear Tiago,
I wanted the same, and Frank suggested to set an ImageList item with size (1, 1). Unfortunately the space taken by the default icons is still taken, i.e there is an empty space between the expand/collapse icon and the node Label, where the node image would be if you hadn’t set a 1×1 px image. On top of that, I noticed that during collapce, the default image showed up for a split second. That was with Classic-2 and an earlier beta version, haven’t checked lately. If you find a better way let me know.
Best,
Alex