On 11 Oct 2009, at 19: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...
Sure, but this is C++, so a struct is just a class with the default
visibility set to public.
What I had envisaged (but have not tried) was deriving my own struct
from struct Fl_Menu_Item {...} and in that, over-riding the draw()
method to do what I wanted.
Also, similarly derive top-level menu_* (e.g. from Fl_Menu_ at least,
others?) items to make use of this new derived struct, and... well a
load of stuff, I guess.
But I haven't tried any of this, and based on Matt's posting it
rather sounds like there would be a lot more to it than that...
Cheers,
--
Ian
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk