Author: AlbrechtS
Date: 2011-04-20 07:54:42 -0700 (Wed, 20 Apr 2011)
New Revision: 8616
Log:
Fixed keyboard navigation in fl_choice() (STR #2591)


Modified:
   branches/branch-1.3/CHANGES
   branches/branch-1.3/src/fl_ask.cxx

Modified: branches/branch-1.3/CHANGES
===================================================================
--- branches/branch-1.3/CHANGES 2011-04-20 14:34:53 UTC (rev 8615)
+++ branches/branch-1.3/CHANGES 2011-04-20 14:54:42 UTC (rev 8616)
@@ -146,6 +146,7 @@
 
          Bug Fixes
 
+       - Fixed keyboard navigation in fl_choice() (STR #2591)
        - Fixed alpha blending under X11 when line data size != 0 (STR #2606)
        - Fixed Fl_Tabs selection border drawing, if tabs are at the bottom
          of the widget (STR #2480)

Modified: branches/branch-1.3/src/fl_ask.cxx
===================================================================
--- branches/branch-1.3/src/fl_ask.cxx  2011-04-20 14:34:53 UTC (rev 8615)
+++ branches/branch-1.3/src/fl_ask.cxx  2011-04-20 14:54:42 UTC (rev 8616)
@@ -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-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to