| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #281
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 2 - Low, e.g. a documentation error or undocumented side-effect |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Documentation |
Summary: | Fl_Menu_::mvalue() needs documentation |
Version: | 1.1.4 |
Created By: | greg.ercolano |
Assigned To: | mike |
Fix Version: | 1.1.5rc1 |
Update Notification: | |
Trouble Report Files:
No files
Trouble Report Comments:
|
#1 | greg.ercolano 17:43 Feb 10, 2004 |
| Fl_Menu_::mvalue() is an important method for Fl_Menu_Bar callbacks to use to determine the Fl_Menu_Item* of the item that was picked.
The docs should read something like:
---- const Fl_Menu_Item* mvalue() const
This can be used by an Fl_Menu_Item's callback() function to determine the Fl_Menu_Item* of the item last "picked".
For instance, all the items in an Fl_Menu_Bar can be set to use the same callback() function. The callback function can then determine the menu item picked via:
static void menuitem_callback(Fl_Widget*w, void*) { Fl_Menu_Bar *menubar = (Fl_Menu_Bar*)w; const Fl_Menu_Item *item = menubar->mvalue(); printf("ITEM PICKED: '%s'\n", item->label()); ... ----
| |
|
#2 | mike 17:49 Feb 29, 2004 |
| Fixed in CVS - the anonymous CVS repository will be updated at midnight PST. | |
[ Return to Bugs & Features ]
|
| |