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

[STR Active]

Link: http://www.fltk.org/str.php?L2418
Version: 1.3-current


Thanks for the report - I can see that this can happen.

Your proposed fix would work (since we don't allow recursion), but I'd
prefer to use the callback mechanism (like it is done for the buttons).
I've attached a patch file (fl_ask.diff).

I don't have the time to test this right now, so please try the attached
(untested) patch and report if this fixes the problem. Thanks

Albrecht


Link: http://www.fltk.org/str.php?L2418
Version: 1.3-current
Index: src/fl_ask.cxx
===================================================================
--- src/fl_ask.cxx      (Revision 7704)
+++ src/fl_ask.cxx      (Arbeitskopie)
@@ -82,6 +82,7 @@
  Fl_Group::current(0);
  // create a new top level window
  Fl_Window *w = message_form = new Fl_Window(410,103,"");
+ message_form->callback(button_cb,(void *)0);
  // w->clear_border();
  // w->box(FL_UP_BOX);
  (message = new Fl_Box(60, 25, 340, 20))
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to