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

[STR New]

Link: http://www.fltk.org/str.php?L2476
Version: 1.3-feature


Here is a patch to fluid to make it generate code with Fl_Float_Input,
Fl_Int_Input instead of Fl_Input followed by "type(%d)".

It still write "type(%d)", this patch is need when using my modifications
to Fl_Float_Input and Fl_Int_Input constructors that didn't take effect
with a call to FL_Input followed by "type(%d)".


Link: http://www.fltk.org/str.php?L2476
Version: 1.3-feature
Index: Fl_Widget_Type.cxx
===================================================================
--- Fl_Widget_Type.cxx  (revision 8014)
+++ Fl_Widget_Type.cxx  (working copy)
@@ -67,6 +67,11 @@
     if (c) return c;
     if (l->is_class()) return "Fl_Group";
     if (p->o->type() == FL_WINDOW+1) return "Fl_Double_Window";
+    if(strcmp(p->type_name(), "Fl_Input") == 0)
+    {
+        if(p->o->type() == FL_FLOAT_INPUT) return "Fl_Float_Input";
+        if(p->o->type() == FL_INT_INPUT) return "Fl_Int_Input";
+    }
   }
   return l->type_name();
 }
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to