diff --git a/documentation/Fl_Menu_.html b/documentation/Fl_Menu_.html index 69f5b1efc..5dcc87b48 100644 --- a/documentation/Fl_Menu_.html +++ b/documentation/Fl_Menu_.html @@ -107,10 +107,12 @@ global() setting (including destroying the menu).


const char* Fl_Menu_::text(int i) const Returns the title of the last item chosen, or of item i.

int Fl_Menu_::size() const

- This returns menu()->size(), which is how many entries are in -the array, not counting the NULL ending, but including all -submenus titles and the NULL's that end them. If the menu is -NULL this returns zero. + This returns menu()->size(), which is +the number of Fl_Menu_Item structures that make up this menu, +correctly counting submenus. This includes the "terminator" item at +the end. So to copy a menu you need to copy +size()*sizeof(Fl_Menu_Item) bytes. If the menu is +NULL this returns zero (an empty menu will return 1).

int Fl_Menu_::add(const char *,const char *,Fl_Callback *,void *v=0,int f=0)
int Fl_Menu_::add(const char *)