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 /FL/Fl_Choice.H | |
| parent | b7189192e2e31ce5ca1f2eaac2a303f9b8216ded (diff) | |
Adding `FL_BEFORE_MENU` event to classes derived from `Fl_Menu_`
Diffstat (limited to 'FL/Fl_Choice.H')
| -rw-r--r-- | FL/Fl_Choice.H | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FL/Fl_Choice.H b/FL/Fl_Choice.H index 944f4d3a4..2434a9ac3 100644 --- a/FL/Fl_Choice.H +++ b/FL/Fl_Choice.H @@ -100,6 +100,10 @@ } \endcode + 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. See `test/menubar.cxx`, class `Dynamic_Choice` + "Flip" and "Flop" for a usage example. */ class FL_EXPORT Fl_Choice : public Fl_Menu_ { protected: |
