> But don't you think that the user function required by add_handler > has a little conception pb ? > > void Fl::add_handler(int (*f)(int)) > > since that function will inevitably be static, I think > a void userdata pointer would be very appreciable. > > void Fl::add_handler(int (*f)(int, void*)) > > In that way user could retrieve his datas and do something > with that function.
Could be - might be worth posting an STR to record this. In the short term, I guess your handler function will just need to query the passed value, and maybe also look at "extern MSG fl_msg;" to see if this is the message you want or not, and then call some other function baseed on the value of fl_msg... Something like that? SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

