In the documentation I found the suggestion to use the List class and define 
its virtual classes for better integration with my own datastructures when 
using a Browser gadget.

So, I did just that. I created a class, made it heritage of the FLTK List 
class. Of course, I also added the needed classes for my "nodes", Then, in the 
gui class, after creating the Browser gadget, I'm inserting the List like this:


mBrowser->list(new List(*mList));

mBrowser and mList is my instanced classobjects.

Is this the right way to do it?

Anyway, how do I make the browser to actually use the list and update its 
browser gadget? Do I need to tell it to fill the browser somehow, using the 
List? Do I need to insert the list each time I update my private dataobjects? I 
can't get fltk to use the List functions child, children and flags_changed that 
now is defined.

thanks!



_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to