Author: AlbrechtS
Date: 2010-03-30 12:44:50 -0700 (Tue, 30 Mar 2010)
New Revision: 7370
Log:
Fixed Return button problem in fl_ask and friends (too much optimization
in previous commit).
Modified:
branches/branch-1.3/src/fl_ask.cxx
Modified: branches/branch-1.3/src/fl_ask.cxx
===================================================================
--- branches/branch-1.3/src/fl_ask.cxx 2010-03-30 19:34:35 UTC (rev 7369)
+++ branches/branch-1.3/src/fl_ask.cxx 2010-03-30 19:44:50 UTC (rev 7370)
@@ -96,7 +96,10 @@
}
// create the buttons (right to left)
for (int b=0, x=310; b<3; b++, x -= 100) {
- button[b] = new Fl_Button(x, 70, 90, 23);
+ if (b==1)
+ button[b] = new Fl_Return_Button(x, 70, 90, 23);
+ else
+ button[b] = new Fl_Button(x, 70, 90, 23);
button[b]->align(FL_ALIGN_INSIDE|FL_ALIGN_WRAP);
button[b]->callback(button_cb,(void *)b);
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit