summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2011-04-20 14:54:42 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2011-04-20 14:54:42 +0000
commit0f20c065ce70908e7b9827e6ed764a55042f997e (patch)
tree49a73ec056051fd22cfa936b4600f480ea975293 /src
parent08b93ec97215a50ae02705e165cb4f071bb1b28e (diff)
Fixed keyboard navigation in fl_choice() (STR #2591)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8616 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/fl_ask.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx
index 444dabec6..c06f0b524 100644
--- a/src/fl_ask.cxx
+++ b/src/fl_ask.cxx
@@ -99,6 +99,7 @@ static Fl_Window *makeform() {
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 @@ static Fl_Window *makeform() {
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();