On 08/18/12 03:16, Matthias Melcher wrote:
> 
> On 17.08.2012, at 22:22, David FLEURY <[email protected]> wrote:
> 
>> Hi,
>>
>> In the Fl_Menu_Bar, when adding an item which has a FL_SUBMENU flag on, 
>> can I have a callback called (using a specific when) ?
>> I have try callback available on Fl_Menu_Item, but it's seems to work 
>> only on "regular" Fl_Menu_Item.
>>
>> I am trying to recompute the submenu when the user will open the submenu 
>> (An open previous file list ( in a Nedit way)
> 
> No, AFAIK, the callback on a submenu item is never called. It could be 
> changed in the library code though.

        I usually repopulate things like 'File>Recent' submenus at the time
        the user opens the files.. (eg. user opens a file, add it to the Recent 
menu..)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to