> I think that call to "fltk::add_timeout(0.05, cb_grab_focus, > wordInput);" is > crucial, without it this doesn't work, that is I don't have to use > overloading of (hadle()) method.
Two ways occurred to me to work around the hide/show and focus issues - one was the "workaround" of using a timeout, the other was the more stylish overriding of the handle method - I tried to show both approaches in the example, but in principle (I didn't try) it should be possible to fix it all "nicely" using the overridden handle method approach. > BTW I've noticed something strange which has not relation to > current issue. > In all the cited programs so far (this is also reproducible > in this program) > if one types something in input box, and then holds > "backspace" key to delete > that strng and holds it a little longer after the string is > deleted, and then > releases "backspace" key and presses "escape" key, then the > first character of > previous (deleted) string will appear, and program wont quit > on subsequent > "escape" key presses. Is this a bug in FLTK 2.x? I don't know - I hadn't seen that before. Probably best if you file an STR on this just to make sure it is picked up. BTW, when I do this, the first time I press ESC, the last deleted character re-appears, the second press of ESC closes the window normally, not quite the same effect. Very odd. 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

