DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2591
Version: 1.3-current
A patch ought to be as simple as adding the buttons in the reverse order,
see attached file button_order.diff.
Please test. If there are no side effects, something like this should do
it.
Link: http://www.fltk.org/str.php?L2591
Version: 1.3-current
Index: src/fl_ask.cxx
===================================================================
--- src/fl_ask.cxx (Revision 8515)
+++ src/fl_ask.cxx (Arbeitskopie)
@@ -99,6 +99,7 @@
o->color(FL_WHITE);
o->labelcolor(FL_BLUE);
}
+ w->end(); // don't add the buttons automatically
// create the buttons (right to left)
for (int b=0, x=310; b<3; b++, x -= 100) {
if (b==1)
@@ -109,6 +110,10 @@
button[b]->callback(button_cb,(void *)b);
}
button[0]->shortcut(FL_Escape);
+ // add the buttons (left to right)
+ for (int b=2; b>=0; b--)
+ w->add(button[b]);
+ w->begin();
w->resizable(new Fl_Box(60,10,110-60,27));
w->end();
w->set_modal();
_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs