From 70ca1d156ba8bb0aa1b3a925b89f935fe4dccfbe Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 11 Mar 2004 05:17:12 +0000 Subject: Fl_Value_Slider::draw_bg() didn't always apply the clipping rectangle (STR #235) fl_filename_relative() returned the wrong string if the absolute pathname was equal to the current working directory (STR #224) Fl_Help_Dialog didn't correctly restore the scroll position when going forward/back in the link history if the file changed (STR #218) glutGetModifiers() did not mask off extra state bits, confusing some GLUT-based applications (STR #213) Fixed mouse capture problems on MacOS X (STR #209, STR #229) Fl_Sys_Menu_Bar is now built into the library for MacOS X (STR #229) Fl_Menu_ now provides item_pathname() methods to get the "pathname" of a menu item, e.g. "File/Quit" (STR #283) Fl_Text_Display now provides cursor_color() methods to get and set the cursor color (STR #271) Fl_Scroll didn't honor FL_NO_BOX (STR #305) FLUID declaration blocks didn't support public/private definitions (STR #301) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3231 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_Menu_.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'documentation/Fl_Menu_.html') diff --git a/documentation/Fl_Menu_.html b/documentation/Fl_Menu_.html index 19aebbe7d..5aee92324 100644 --- a/documentation/Fl_Menu_.html +++ b/documentation/Fl_Menu_.html @@ -45,6 +45,7 @@ be "private": a dynamically allocated array managed by the Fl_Menu_.
  • copy
  • down_box
  • global
  • +
  • global
  • menu
  • @@ -213,6 +214,25 @@ not have to be put in a window at all).

    Currently there can be only one global()menu. Setting a new one will replace the old one. There is no way to remove the global() setting (so don't destroy the widget!)

    + +

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

    + +

    In the case of errors (-1 or -2), 'name' will be an empty string. +

    const char* Fl_Menu_::text() const
    const char* Fl_Menu_::text(int i) const

    Returns the title of the last item chosen, or of item i. -- cgit v1.2.3