I have a tree view where the view represents a company/branch network.
In the other tree views I've used, the 'node open', 'node closed' and 'leaf node' attributes as defined on the form worked ok., but for this current view, I simply want the parent to have an image and all children to have another image.
I can set 'node open' and 'node closed' to the image for the company and the 'leaf node' to the image for the branch, as only companies can have branches and I can't have a branch with their being a company record. BUT, if I have a company without any branches, then that is a leaf and gets the wrong image (ie a branch and a company without any branches are shown with the same image).
I had half expected that the 'image' phantom field in the 4gl program array could be used to set the images. IE when loading the array I could set the image array field to a company image if a company, and to a branch image if a branch and then not bother setting the image attributes on the form, but that just seems to leave the image field blank.
Is there a way to do what I'm trying to do - ie simply set a parent node with one image, and a child node with another?