Author: matt Date: 2007-10-06 10:42:05 -0700 (Sat, 06 Oct 2007) New Revision: 5943 Log: Updated Fl_Menu_ documentation with a warning to not change the structure of a menu during a callback by itself.
Modified: branches/branch-1.1/documentation/Fl_Menu_.html Modified: branches/branch-1.1/documentation/Fl_Menu_.html =================================================================== --- branches/branch-1.1/documentation/Fl_Menu_.html 2007-10-06 17:33:17 UTC (rev 5942) +++ branches/branch-1.1/documentation/Fl_Menu_.html 2007-10-06 17:42:05 UTC (rev 5943) @@ -144,6 +144,9 @@ <P>The return value is the index into the array that the entry was put. </P> +<P>No items must be added to a menu during a callback to the same menu.</P> + + <h4>int Fl_Menu_::add(const char *)</H4> <P>The passed string is split at any '|' characters and then @@ -153,12 +156,16 @@ same special characters as described for the long version of <a href='#Fl_Menu_.add'><tt>add()</tt></a></p> +<P>No items must be added to a menu during a callback to the same menu.</P> + <H4><A name=Fl_Menu_.clear>void Fl_Menu_::clear()</A></H4> Same as <tt>menu(NULL)</tt>, set the array pointer to null, indicating a zero-length menu. +<P>Menus must no be cleared during a callback to the same menu.</P> + <H4><A name=Fl_Menu_.copy>void Fl_Menu_::copy(const Fl_Menu_Item*, void* user_data = 0)</A></H4> @@ -233,7 +240,9 @@ Deletes item <TT>n</TT> from the menu. If the menu array was directly set with menu(x) then copy() is done to make a private array. +<P>No items must be removed from a menu during a callback to the same menu.</P> + <H4><A name=Fl_Menu_.replace>void Fl_Menu_::replace(int n, const char *)</A> </H4> _______________________________________________ fltk-commit mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-commit
