| [ Return to Bugs & Features | Roadmap 1.1 | SVN ⇄ GIT ]
STR #283
Application: | FLTK Library |
Status: | 1 - Closed w/Resolution |
Priority: | 1 - Request for Enhancement, e.g. asking for a feature |
Scope: | 3 - Applies to all machines and operating systems |
Subsystem: | Core Library |
Summary: | Patch to add new 'menu pathname' method Fl_Menu_::item_pathname() |
Version: | 1.1.4 |
Created By: | greg.ercolano |
Assigned To: | mike |
Fix Version: | 1.1.5rc1 |
Update Notification: | |
Trouble Report Files:
Trouble Report Comments:
|
#1 | greg.ercolano 08:44 Feb 11, 2004 |
| This patches add the ability to return the "menu pathnames" (eg. "File/Quit") for a given Fl_Menu_Item*.
patch-Fl_Menu_cxx.txt -- patch to Fl_Menu_.cxx patch-Fl_Menu_H.txt -- patch to Fl_Menu_.H
| |
|
#2 | greg.ercolano 09:00 Feb 11, 2004 |
| Recommended docs:
---- int Fl_Menu_::item_pathname(char *name, int namelen ) const int Fl_Menu_::item_pathname(char *name, int namelen, const Fl_Menu_Item *finditem) const
Returns the 'menu pathname' (eg. "File/Quit") for the recently picked item in user supplied string 'name'. Useful in the callback function for a menu item, to determine the last picked item's 'menu pathname' string.
If finditem is specified, name will contain the 'menu pathname' for that item.
Returns: 0 - OK: 'name' has the pathname, guaranteed not longer than namelen -1 - Failed: 'finditem' was not found in the menu -2 - Failed: 'name' is not large enough to handle the menu names
In the case of errors (-1 or -2), 'name' will be an empty string. ---- | |
|
#3 | mike 20:22 Mar 10, 2004 |
| Added to CVS for 1.1.5. | |
[ Return to Bugs & Features ]
|
| |