diff options
| author | Greg Ercolano <erco@seriss.com> | 2015-01-10 17:46:10 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2015-01-10 17:46:10 +0000 |
| commit | 5cfa1ac7062e65e2932e16d605297e463d31ccbc (patch) | |
| tree | f3c660ba287ac3fc64917862c85e839f289c2f0a /FL | |
| parent | 335212dacb9b2ff474cbb67f98a61a0382078a60 (diff) | |
Improvements to Fl_Menu_ docs regarding how callbacks are invoked.
In response to misinterpretation raised in STR #3172.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10511 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Menu_.H | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/FL/Fl_Menu_.H b/FL/Fl_Menu_.H index d39b751bc..b6a4e1577 100644 --- a/FL/Fl_Menu_.H +++ b/FL/Fl_Menu_.H @@ -35,6 +35,17 @@ <P>The class contains a pointer to an array of structures of type Fl_Menu_Item. The array may either be supplied directly by the user program, or it may be "private": a dynamically allocated array managed by the Fl_Menu_. + + When the user clicks a menu item: + + - If the Fl_Menu_Item has a callback set, that callback + is invoked with any userdata configured for it. + (The Fl_Menu_ widget's callback is NOT invoked. + + - For any Fl_Menu_Items that \b don't have a callback set, + the Fl_Menu_ widget's callback is invoked with any userdata + configured for it. The callback can determine which item + was picked using value(), mvalue(), item_pathname(), etc. */ class FL_EXPORT Fl_Menu_ : public Fl_Widget { |
