FLTK logo

STR #283

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

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:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 greg.ercolano
08:44 Feb 11, 2004
patch-Fl_Menu_cxx.txt
1k
 
 
#2 greg.ercolano
08:44 Feb 11, 2004
patch-Fl_Menu_H.txt
0k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#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 ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.