On 08/02/12 13:12, David FLEURY wrote:
> is the Fl_Menu_Item* retrieve using find_item is stable on Fl_Menu_Bar 
> add/insert/replace operation ?

        No, definitely not.
        This is why you never want to keep Fl_Menu_Item*'s around for
        very long, you want to do the lookup when events happen.

> I try to store something that allow me to retreive state of radio/toggle 
> for exemple without using the full path of the menu item.

        Ya, don't store pointers.
        Just keep them around long enough to do the thing you need to do,
        then drop them.

        Always re-resolve the pointer when you need it.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to