From 5dd1062df53c747339b875c8cb0c13df576ad4b8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 29 Mar 2025 23:36:09 +0100 Subject: Adding `FL_BEFORE_MENU` event to classes derived from `Fl_Menu_` --- FL/Enumerations.H | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'FL/Enumerations.H') diff --git a/FL/Enumerations.H b/FL/Enumerations.H index db6465096..5bc2951aa 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -418,7 +418,11 @@ enum Fl_Event { // events /** A tooltip is about to pop up for this widget. The mouse coordinates are available in Fl::event_x() and Fl::event_y(). Change the widget tooltip as needed. */ - FL_TOOLTIP_EVENT = 28 + FL_BEFORE_TOOLTIP = 28, + /** Triggered just before a menu is displayed. Widgets derived from Fl_Menu_ + receive this event right before the menu appears, providing an opportunity + to update menu item states and activation. */ + FL_BEFORE_MENU = 29 // DEV NOTE: Keep this list in sync with FL/names.h }; -- cgit v1.2.3