Hmm, I think I see the problem.
        In short, the following patch to Fl_Table.H should solve it.

        I've applied this patch as svn r8868.

Index: FL/Fl_Table.H
===================================================================
--- FL/Fl_Table.H       (revision 8865)
+++ FL/Fl_Table.H       (working copy)
@@ -854,9 +854,14 @@
   }
   void add(Fl_Widget& w) {
     table->add(w);
+    if ( table->children() > 2 ) {
+      table->show();
+    } else {
+      table->hide();
+    }
   }
   void add(Fl_Widget* w) {
-    table->add(w);
+    add(*w);
   }
   void insert(Fl_Widget& w, int n) {
     table->insert(w,n);
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to