DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Active]

Link: http://www.fltk.org/str.php?L2795
Version: 1.3-current
Fix Version: 1.3-current (r9216)


Should be fixed in r9216.
Leaving this open to see how it goes.

I tested with the attached code (tree-100k.cxx) that creates 100k items
which is entirely unusable in r9215 and lower, but should be
quite normal in r9216 and up.

There is still a practical limit on the number of items that
can be in the tree; draw() will still /consider/ (ie. do calculations
on) items that are not hidden (ie. open() and visible()), but at least
it won't try to /draw/ items unless they're inside the window.


Link: http://www.fltk.org/str.php?L2795
Version: 1.3-current
Fix Version: 1.3-current (r9216)
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Tree.H>

int main( int argc, char **argv)
{
   Fl_Double_Window *w = new Fl_Double_Window(900,300);
   Fl_Tree          *b = new Fl_Tree(10,10,w->w()-20,w->h()-20);

   char s[80];
   for ( int t=0; t<100000; t++ )
   {
       sprintf(s, "Entry #%06d", t);
       b->add(s);
       if ( t % 50 == 0 ) printf("Working on %d\n", t);
   }
   w->resizable(b);
   w->end();
   w->show();
   return(Fl::run());
}
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to