diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-02-24 11:23:38 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-02-24 11:23:38 +0100 |
| commit | a1b2d547584ce5631ed983fe7ede4e7a02a0723c (patch) | |
| tree | 269b832d62b1e33b4e8a880003fc416c279ca31a /test | |
| parent | a9a482b1cc01570f19ac899e74759e4bb9dd8ec1 (diff) | |
Add example of call to Fl_Sys_Menu_Bar::about()
Diffstat (limited to 'test')
| -rw-r--r-- | test/menubar.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/menubar.cxx b/test/menubar.cxx index 03c301ada..438709e6b 100644 --- a/test/menubar.cxx +++ b/test/menubar.cxx @@ -32,6 +32,7 @@ #include "../src/flstring.h" #include <FL/fl_draw.H> #include <FL/Fl_Simple_Terminal.H> +#include <FL/fl_ask.H> #define TERMINAL_HEIGHT 120 @@ -218,6 +219,10 @@ void menu_linespacing_cb(Fl_Widget* w, void*) { Fl_Menu_* menus[4]; +void about_cb(Fl_Widget*, void*) { + fl_message("The menubar test app."); +} + int main(int argc, char **argv) { //Fl::set_color(Fl_Color(15),0,0,128); for (int i=0; i<99; i++) { @@ -273,6 +278,7 @@ int main(int argc, char **argv) { window.end(); + Fl_Sys_Menu_Bar::about(about_cb, NULL); #ifdef __APPLE__ Fl_Menu_Item custom[] = { {"Preferences…", 0, test_cb, NULL, FL_MENU_DIVIDER}, |
