> I have ten buttons which have all the same callback-function. > How can I > find out which button it was that triggered callback?
The Fl_Widget* passed to the callback will be a pointer to the widget that triggered the callback. You can use this to find the correct button - for example, you might cast it to a Fl_Button * and use that to access the members of the calling button. 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

