From a1b2d547584ce5631ed983fe7ede4e7a02a0723c Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 24 Feb 2019 11:23:38 +0100 Subject: Add example of call to Fl_Sys_Menu_Bar::about() --- test/menubar.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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 #include +#include #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}, -- cgit v1.2.3