FLTK logo

STR #281

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 #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:

Receive EMails Don't Receive EMails

Trouble Report Files:

No files


Trouble Report Comments:


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

 
 

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'.