> It's ok that it will not work when the menu is modified at run time; > but I think the menu_item access should work correctly as long as the > menu is *not* modified. (This is given in my case.)
Yup: I think it would be good if you filed an STR recording this stuff, because it does look like there's something a bit, erm, "suspect" about the current behaviour... > Alternatively FLUID could generate the menu_item pointer in the .h file > as a function call (using Gregs recommendation) like : > #define PTimeBaseTEST (menu_PMenuBar->find_item("Settings/TimeBase/Test > Time")) > That should work even on modified menus. Indeed. > [OK, but only as long as the the menu_item name is not modified... :-( > ] Though I think Greg also has a demo showing how to change the menu items "name" without actually changing its name too, for internationalization purposes and etc... ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk