>>> So does it means the browser widget can't adjust the item height? :o(
FWIW, Fl_Tree does handle different sizes for items, eg:
http://seriss.com/people/erco/fltk/tmp/fl_tree-random-sizes.png
Code for this example below.
Note Fl_Tree was recently added to fltk 1.3.x, but also lives
as a standalone addition to fltk 1.1.x if downloaded from here:
http://seriss.com/people/erco/fltk/Fl_Tree/
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Tree.H>
// Demonstrate random sizes of items in Fl_Tree
int main(int argc, char **argv) {
Fl_Double_Window *win = new Fl_Double_Window(400, 400, "Tree");
Fl_Tree *tree = new Fl_Tree(10, 10, 400-20, 400-20);
tree->add("Aaa");
tree->add("Bbb");
tree->add("Ccc");
tree->add("Ddd");
for ( int t=0; t<50; t++ ) {
static char s[80];
sprintf(s, "Bbb/This is a test: %04d", t);
Fl_Tree_Item *it = tree->add(s);
it->labelsize(12 + rand() % 20); // random sizes for each child
}
tree->end();
win->show();
return(Fl::run());
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk