diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2010-03-30 19:44:50 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2010-03-30 19:44:50 +0000 |
| commit | 4b3360a6a741fcebaebcc3ac461586003d20d162 (patch) | |
| tree | d69f1ea55aa3172265df4f6684d7c68a2f7c0077 | |
| parent | b2a7c3df5ee59ff0270d351e3eecefad39357397 (diff) | |
Fixed Return button problem in fl_ask and friends (too much optimization
in previous commit).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/fl_ask.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx index 88722b068..791f7a173 100644 --- a/src/fl_ask.cxx +++ b/src/fl_ask.cxx @@ -96,7 +96,10 @@ static Fl_Window *makeform() { } // 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); } |
