Hi all,
I am working with FLTK for years now and have to create a new visualization
needing some complex widgets in a tree structure.
I am really happy that there is the Fl_Tree in there, but concerning added
widgets, there seem to be some bugs in it.
1. When adding some more items to the tree (more than matching into a window)
and adding a widget to each of them, the visualization is not correct, as the
items are displayed outside the tree. The simply are added below the others,
not taking into account the end of the Fl_Tree widget.
2. When scrolling, all the items with widgets disappear. They are simply not
drawn, but can still be clicked. When doing so, they reappear magically. But
when clicking on other items, they disappear again.
You can test that behaviour when simply adding this to the test/tree.cxx
// Add 500 items in numerical order
tree->sortorder(FL_TREE_SORT_NONE);
for ( int t=0; t<500; t++ ) {
static char s[80];
sprintf(s, "500 Items/item %04d", t);
Fl_Tree_Item *i = tree->add(s);
static Fl_Group *grp[500];
grp[t] = new Fl_Group(100,100,140,18); // build group.. tree handles
position
grp[t]->color(FL_WHITE);
grp[t]->begin();
Fl_Button *abut = new Fl_Button(grp[t]->x()+0
,grp[t]->y()+2,65,15,"D1");
abut->labelsize(10);
abut->callback(Button_CB);
Fl_Button *bbut = new
Fl_Button(grp[t]->x()+75,grp[t]->y()+2,65,15,"D2");
bbut->labelsize(10);
bbut->callback(Button_CB);
grp[t]->end();
grp[t]->resizable(grp[t]);
i->widget(grp[t]);
}
BTW, I am using Win XP with Visual Studio 2005 and the latest revision of FLTK
1.3
Any help is highly appreciated!
Kind regards,
Julian
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs