Author: AlbrechtS
Date: 2011-04-20 08:41:09 -0700 (Wed, 20 Apr 2011)
New Revision: 8617
Log:
Fixed keyboard navigation in fl_choice() (STR #2591)


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

Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2011-04-20 14:54:42 UTC (rev 8616)
+++ branches/branch-1.1/CHANGES 2011-04-20 15:41:09 UTC (rev 8617)
@@ -1,5 +1,6 @@
 CHANGES IN FLTK 1.1.11
 
+       - Fixed keyboard navigation in fl_choice() (STR #2591)
        - Fixed alpha blending under X11 when line data size != 0 (STR #2606)
        - Update libpng access for libpng 1.5 and higher (STR #2542)
        - Fixed linker issue (missing -lfontconfig) when configured with

Modified: branches/branch-1.1/src/fl_ask.cxx
===================================================================
--- branches/branch-1.1/src/fl_ask.cxx  2011-04-20 14:54:42 UTC (rev 8616)
+++ branches/branch-1.1/src/fl_ask.cxx  2011-04-20 15:41:09 UTC (rev 8617)
@@ -81,6 +81,8 @@
   o->color(FL_WHITE);
   o->labelcolor(FL_BLUE);
  }
+ w->end(); // don't add the buttons automatically
+ // create the buttons (right to left)
  button[0] = new Fl_Button(310, 70, 90, 23);
  button[0]->shortcut(FL_Escape);
  button[0]->align(FL_ALIGN_INSIDE|FL_ALIGN_WRAP);
@@ -88,6 +90,10 @@
  button[1]->align(FL_ALIGN_INSIDE|FL_ALIGN_WRAP);
  button[2] = new Fl_Button(110, 70, 90, 23);
  button[2]->align(FL_ALIGN_INSIDE|FL_ALIGN_WRAP);
+ // 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