summaryrefslogtreecommitdiff
path: root/FL/Fl_Menu_Bar.H
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2025-03-29 23:36:09 +0100
committerMatthias Melcher <github@matthiasm.com>2025-03-29 23:36:19 +0100
commit5dd1062df53c747339b875c8cb0c13df576ad4b8 (patch)
tree9c618866ea1159cf53ed6bdadeda48b4efff808f /FL/Fl_Menu_Bar.H
parentb7189192e2e31ce5ca1f2eaac2a303f9b8216ded (diff)
Adding `FL_BEFORE_MENU` event to classes derived from `Fl_Menu_`
Diffstat (limited to 'FL/Fl_Menu_Bar.H')
-rw-r--r--FL/Fl_Menu_Bar.H4
1 files changed, 4 insertions, 0 deletions
diff --git a/FL/Fl_Menu_Bar.H b/FL/Fl_Menu_Bar.H
index 26c08539d..4e7af0d6e 100644
--- a/FL/Fl_Menu_Bar.H
+++ b/FL/Fl_Menu_Bar.H
@@ -61,6 +61,10 @@
Typing the shortcut() of any of the menu items will cause
callbacks exactly the same as when you pick the item with the mouse.
+
+ FLTK triggers an `FL_BEFORE_MENU` event for this widget right before
+ displaying the menu. This event provides an opportunity to update menu
+ item states and activation.
*/
class FL_EXPORT Fl_Menu_Bar : public Fl_Menu_ {
friend class Fl_Sys_Menu_Bar_Driver;