diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-15 21:58:26 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-05-15 21:58:26 +0200 |
| commit | 238c3b7ceff7b1bb6e568ff93b593e8c08ff9ecd (patch) | |
| tree | ec6ede0a9196a4133c06839e8f1ad5f416b1f7dc /documentation/src/faq.dox | |
| parent | 88c2994e20be93122bbd316d65711321f97ea2ba (diff) | |
| parent | 5df7a7678a4641cc9234ac8ea0d54623628d922a (diff) | |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'documentation/src/faq.dox')
| -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 |
