summaryrefslogtreecommitdiff
path: root/test/color_chooser.cxx
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 /test/color_chooser.cxx
parentb7189192e2e31ce5ca1f2eaac2a303f9b8216ded (diff)
Adding `FL_BEFORE_MENU` event to classes derived from `Fl_Menu_`
Diffstat (limited to 'test/color_chooser.cxx')
-rw-r--r--test/color_chooser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/color_chooser.cxx b/test/color_chooser.cxx
index a9a7a5ca1..f5c9827cc 100644
--- a/test/color_chooser.cxx
+++ b/test/color_chooser.cxx
@@ -90,7 +90,7 @@ public:
Image_Box(int x, int y, int w, int h, const char *label = nullptr)
: Fl_Box(x, y, w, h, label) { }
int handle(int event) {
- if (event == FL_TOOLTIP_EVENT) {
+ if (event == FL_BEFORE_TOOLTIP) {
const char *color_name_lut[] = { "blue", "green", "black", "red" };
int quadrant = (Fl::event_x() < x()+w()/2) + 2*(Fl::event_y() < y()+h()/2);
char buf[80];