On 08/02/12 15:43, Greg Ercolano wrote:
> 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.
BTW, here's an example of that concept:
http://seriss.com/people/erco/fltk/#MultiLanguageApp
Perhaps you can also correct my french in that example ;)
4 years of french in High School, and I can barely remember anything.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk