Hi Guys, I'm trying to swap some code over to using the new Fl_Tree in FLTK 1.3 (from the Flu_Tree_Browser I was originally using) and I'm coming across a few difficulties with the API.
1) How do I find the address of the 'prefs' struct that is associated with an Fl_Tree instance? I don't like using the menu style 'add' call in Fl_Tree for adding nodes (one reason is that my node label may have a '/' in it), and prefer to add child nodes directly to the parents using the 'insert' command, but I don't know where to get the prefs to pass as an argument to the function. 2) Is there a method for returning an array of the selected nodes? At the moment I'm iterating through all the nodes and constructing this myself but I wondered if I was missing a purpose built function call? 3) With Flu_Tree_Browser I was able to associate a 'user_data' value with each one of the items (that I set as a pointer to a corresponding struct in the rest of my programs). This was extremely useful - does Fl_Tree support anything similar? 4) What's the best was to detect when a node has been collapsed/expanded by the user, and find out which item this occurred for? Any help with any of the above would be amazing. Many thanks, Seb _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

