I'm trying to replicate Erel's JSON tree parser for incorporation into my app, but hitting a slight snag. See images below.
Image on the right users CustomListView in Designer. Image on right is Ere's original JsonTree that uses the old TreeView and Scene Builder.
Here's the thing: I grabbed the three image files (green, blue, red) used in the original, wanting the same look. But CustomListView insists on enlarging this small 16x16 bitmaps, and no matter what I do I cannot seem to change their size to look more like the original. I can reduce the height of the tree panels with Tree.DefaultHeight, but this only crops the images rather than resize them. Image.resize seems to do nothing, even with a tree.refresh.
No doubt something "obvious", but if anyone knows how to change the way CLV displays those images it would save me some headache.
Image on the right users CustomListView in Designer. Image on right is Ere's original JsonTree that uses the old TreeView and Scene Builder.
Here's the thing: I grabbed the three image files (green, blue, red) used in the original, wanting the same look. But CustomListView insists on enlarging this small 16x16 bitmaps, and no matter what I do I cannot seem to change their size to look more like the original. I can reduce the height of the tree panels with Tree.DefaultHeight, but this only crops the images rather than resize them. Image.resize seems to do nothing, even with a tree.refresh.
No doubt something "obvious", but if anyone knows how to change the way CLV displays those images it would save me some headache.