Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-16 Thread Greg Ercolano
[STR Closed w/Resolution] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Fix Version: 1.3-current (r7517) Fixed in Subversion repository. Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Fix Version: 1.3-current (r7517)

Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-08 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Link: http://www.fltk.org/str.php?L1758 Version: 1.3-featureint Fl_Menu_::clear_submenu(int index) { if ( ! (menu_[index].flags FL_SUBMENU)

Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-08 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Attached clear_menu.cxx, which suggests how Fl_Menu_::clear_menu(int) can be implemented. Most of the footwork is handled by remove() which

Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-08 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Combined patch attached (Fl_Menu_--all-additions--combined.patch) which adds the three methods: insert() clear_submenu()

Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-08 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature#include FL/Fl.H #include FL/Fl_Window.H #include FL/Fl_Menu_Bar.H #include

Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-07 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Great -- will follow up in fltk.dev for the API proposal for Fl_Menu_::insert(), and come back here when we've decided what works best. Link:

Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-07 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Link: http://www.fltk.org/str.php?L1758 Version: 1.3-featureIndex: src/Fl_Menu_add.cxx

Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-06 Thread Matthias Melcher
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature Sorry Greg. As Albrecht said, I don't mind it at all to add this feature, especially if there is already some code. I feel that the array

Re: [fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2010-04-05 Thread Matthias Melcher
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 1.3-feature I would not fix this. Any version beyond 1.3.0 should feature the FLTK 2 menu system where menus are simply children of the Menu widget. All

[fltk.development] [RFE] STR #1758: Add methods to Fl_Menu_ to help dynamically manipulate menus

2007-08-02 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L1758 Version: 2.0-feature It would be good if some of the functionalities were added to the Fl_Menu_ class: o Clear all items in a named submenu, eg. int