diff options
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/src/faq.dox | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/documentation/src/faq.dox b/documentation/src/faq.dox index 530f97eef..a407327dd 100644 --- a/documentation/src/faq.dox +++ b/documentation/src/faq.dox @@ -125,7 +125,7 @@ because Escape will still close pop-up windows: \code void my_callback(Fl_Widget*, void*) { - if (Fl::event()==FL_SHORTCUT && Fl::event_key()==FL_Escape) + if (Fl::event() == FL_SHORTCUT && Fl::event_key() == FL_Escape) return; // ignore Escape exit(0); } @@ -136,7 +136,8 @@ done with: \code void my_callback(Fl_Widget*, void*) { - if (fl_ask("Are you sure you want to quit?")) + if (fl_choice("Are you sure you want to quit?", + "continue", "quit", NULL)) exit(0); } \endcode |
