Looking again at the program I've got the sizeof numbers I did a mistake because it printed more numbers together: Flu_Tree_Browser = 524 Flu_Tree_Browser::Node = 92
I was thinking of only have the minimun on an Fl_Tree_item and derived ones to each specific task. Lets say: class Fl_Tree_Item { char _open; // item is open? char _visible; // item is visible? char _active; // item activated? char _selected; // item selected? Fl_Tree_Item_Array _children; // array of child items Fl_Tree_Item *_parent; // parent item (=0 if root) #if FLTK_ABI_VERSION >= 10302 Fl_Tree_Item *_prev_sibling; // previous sibling (same level) Fl_Tree_Item *_next_sibling; // next sibling (same level) #endif /*FLTK_ABI_VERSION*/ } class Fl_Tree_Item_szString : public Fl_Tree_Item { char *label; //using the same stype as Fl_Tree } class Fl_Tree_Item_Label : public Fl_Tree_Item { Fl_Label *label; } class Fl_Tree_Item_Widget : public Fl_Tree_Item { Fl_Widget *widget; } class Fl_Tree_Item_... ----output that made me get wrong numbers----- Flu_Tree_Browser 524 : Flu_Tree_Browser::Node 92 sizeof(Flu_Tree_Browser::Node): 92 _______________________________________________ fltk-bugs mailing list fltk-bugs@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-bugs