Le 03/08/2012 00:43, Greg Ercolano a écrit :
>       Just never store the pointer, always resolve it with the path.
>
>       If you need a pointer that doesn't change, use the menu item's 
> userdata();
>       this can point to a data structure of your own making, and will survive
>       add/insert/delete.
>
>       I use that technique in multilanguage apps where I have the menu
>       display one thing, but keeps the 'real' pathname in a string managed
>       by the userdata.

My issue is that mnemonic and shortcut are created dynamically by 
configuration, so the path change during the life of the menu bar.

I will see to Menu_Bar source code.

_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to