Skip to content

Commit

Permalink
Improvements to Fl_Menu_ docs regarding how callbacks are invoked.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
erco77 committed Jan 10, 2015
1 parent 335212d commit 5cfa1ac
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions FL/Fl_Menu_.H
Expand Up @@ -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 {

Expand Down

0 comments on commit 5cfa1ac

Please sign in to comment.