From b7189192e2e31ce5ca1f2eaac2a303f9b8216ded Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 29 Mar 2025 22:40:13 +0100 Subject: Adds a new event FL_TOOLTIP_EVENT... ... and Fl_Tootip::override_text() to allow users to dynamically generate tooltips. --- 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 2478a8c58..db6465096 100644 --- a/FL/Enumerations.H +++ b/FL/Enumerations.H @@ -414,7 +414,11 @@ enum Fl_Event { // events /** A zoom event (ctrl/+/-/0/ or cmd/+/-/0/) was processed. Use Fl::add_handler() to be notified of this event. */ - FL_ZOOM_EVENT = 27 + FL_ZOOM_EVENT = 27, + /** 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 // DEV NOTE: Keep this list in sync with FL/names.h }; -- cgit v1.2.3