On 08/02/12 13:40, David FLEURY wrote:
> It looks like not... damned.
>
> So, how can I have this behavior ?
> today, I am using a map storing a Id and the path but this is not the
> easy way when a mnemonic is added to a menu to update all the path.
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.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk