diff options
| author | Matthias Melcher <github@matthiasm.com> | 2025-03-29 23:36:09 +0100 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2025-03-29 23:36:19 +0100 |
| commit | 5dd1062df53c747339b875c8cb0c13df576ad4b8 (patch) | |
| tree | 9c618866ea1159cf53ed6bdadeda48b4efff808f /src/Fl_Choice.cxx | |
| parent | b7189192e2e31ce5ca1f2eaac2a303f9b8216ded (diff) | |
Adding `FL_BEFORE_MENU` event to classes derived from `Fl_Menu_`
Diffstat (limited to 'src/Fl_Choice.cxx')
| -rw-r--r-- | src/Fl_Choice.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Choice.cxx b/src/Fl_Choice.cxx index e5a0276af..ac9a260cf 100644 --- a/src/Fl_Choice.cxx +++ b/src/Fl_Choice.cxx @@ -195,6 +195,7 @@ int Fl_Choice::handle(int e) { J1: if (Fl::scheme() || fl_contrast(textcolor(), FL_BACKGROUND2_COLOR) != textcolor()) { + handle(FL_BEFORE_MENU); v = menu()->pulldown(x(), y(), w(), h(), mvalue(), this); if (wp.deleted()) return 1; } else { @@ -202,6 +203,7 @@ int Fl_Choice::handle(int e) { // temporarily override the color() of this widget... Fl_Color c = color(); color(FL_BACKGROUND2_COLOR); + handle(FL_BEFORE_MENU); v = menu()->pulldown(x(), y(), w(), h(), mvalue(), this); if (wp.deleted()) return 1; color(c); |
