On 11.10.2009, at 20:06, [email protected] wrote:

>> OK, here's a nasty idea: make your own menu subclass, and (somehow I
>> haven't thought through yet) hook the draw method that exposes the
>> menu to trigger your file checks?
>
> Yeah, but what to subclass?  The menu items are just structs with
> no methods...

Fl_Menu_Item/Fl_Menu_ is a silly beast that is implemented in the  
functions popup() and pulldown(). I have lost a lot of hair trying to  
debug those functions. The easiest - if you are willing to go this  
route - would probably be to copy that main puldown menu loop from  
Fl_Menu_.cxx IIRC and start modifying it until you get the callback  
when a new submenu is opened.

  Matthias

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

Reply via email to