[...] > However, I can't do the same trick in the fluid MenuItem/C++ tab > to call the 'onFileQuit2' static member function with widget and > userdata because fluid writes 'this' outside the class scope. > [Try it for yourself by changing the attached fluid file :-) ] > [...] > 3. Is there an obscure fluid way to pass 'this' to onFileQuit2() ?
I think the way to do this bit is to use Fl_Menu_::copy() with "this" as the second parameter. Not being a sophisticated fluid user, I don't know how to do so in that context. HTH, Stan _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

