> I have a losting focus problem. > > On a window, I have some Inputs. In every Input, i do not > want to lost focus until the value is ok for me. > > Tried to modify Input.cxx. If i call take_focus() in handle() > when get UNFOCUS, this makes infinite recursion to handle(). > > Any suggestion ?
I think we need a bit more detail; what happens to cause the input widget to lose the focus in the first place? It may be easier to stop <that other action> from taking the focus away than it is to make the input keep it... Or - Can you make a subclass of the input widget, and in it's handle method keep track of whether you just sent a take_focus(), and use that to break the recusion? 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

