DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2841
Version: 1.3-feature
I propose to add confirmation on removing widgets in Fluid. Someone can
account it annoying window, but I have a lot of troubles with accidentally
removing of widgets. E.g. I want to remove last symbol from label field of
Properties and if I press the "delete" button two times my widget will
disappear! Because I don't know how to make Fluid correctly handle this
case I added fl_choice() in handler of deleting widgets to prevent
unintentional deleting.
Link: http://www.fltk.org/str.php?L2841
Version: 1.3-feature
--- fltk/fluid/fluid.cxx
+++ fltk/fluid/fluid.cxx
@@ -763,6 +763,10 @@
fl_beep();
return;
}
+ if (fl_choice("Do you really want to delete this item?",
+ "Cancel", "Delete", NULL) == 0)
+ return;
+
undo_checkpoint();
set_modflag(1);
ipasteoffset = 0;
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev