> I would like to cause a callback if I click anywhere on the > background > of my window . Not just if I click on the closing-x on the > upper right > corner. > > How do I do that?
Drive your own subclassed widget. In the handle method, call the base class handle method and check the return value: - if it is non-zero, some widget has consumed the event so there is nothing more to do, simply return that value. - if it is zero, no one used the event, so check if it is the event that you are looking for. If so, just use do_callback() or some similar mechanism to invoke the requisite actions. Then return 1 to stop the event from propagating any further (since you have used it.) Something like that ought to work. -- Ian 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

