> I'm not sure if when you are saying "nodes" that you really mean "leaves".
"Node” is the general term that includes both “branches” and “leaves”. https://www.tecgraf.puc-rio.br/iup/en/elem/iuptree_attrib.html#nodes But branches and leaves are not the same thing. "Node" should only be used when generically referring to branches, leaves, and root. When referring to just a branch or a leaf or root, "node" should not be used to reduce confusion. > I see TITLEFONTSTYLEid is used for nodes and titlefont for leaves They can be used with either kind of node. TITLEFONTid is like what you did with TITLEFONT (but “id” is the number of the node you want to change) where you specify font face, style, and size. TITLEFONTSTYLEid lets you set the style (like “Bold” or “Italic”) without changing other aspects of the font. I can see that since TITLEFONTSTYLEid and titlefont are used for nodes (read: branches and leaves and the root), they are universal functions. That should mean whatever you can do with a branch and it's text, you can do the same thing with a leaf or root using that same function and syntax. Now with terminology out of the way, I looked at your code for flattree and I don't see anywhere in the documentation where ADDBRANCH-1 is a valid term, since the "id" in ADDBRANCHid is always a positive whole number. "If id is empty or invalid, then the focus node is used as reference node" and I think the focus node should be the root node, but that just means nothing should happen. To address the root node it looks like ADDBRANCH with no id should be used and not ADDBRANCH-1. Hope this helps, Andrew
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users