From fdcfef214e67b0b1162ef4098ba960efd7049523 Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Mon, 15 Sep 2008 00:27:28 +0000 Subject: Doxygen documentation WP7 Done. Fl_Menu_Item was a real pain to doxyfy. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6248 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Menu_global.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Fl_Menu_global.cxx') diff --git a/src/Fl_Menu_global.cxx b/src/Fl_Menu_global.cxx index b7cba6faf..ebfb7965e 100644 --- a/src/Fl_Menu_global.cxx +++ b/src/Fl_Menu_global.cxx @@ -40,6 +40,16 @@ static int handler(int e) { return the_widget->handle(e); } +/** + Make the shortcuts for this menu work no matter what window has the + focus when you type it. This is done by using + Fl::add_handler(). This Fl_Menu_ widget does not + have to be visible (ie the window it is in can be hidden, or it does + not have to be put in a window at all). +

Currently there can be only one global()menu. Setting a new + one will replace the old one. There is no way to remove the + global() setting (so don't destroy the widget!) +*/ void Fl_Menu_::global() { if (!the_widget) Fl::add_handler(handler); the_widget = this; -- cgit v1.2.3