On 17.03.2011 12:15, MacArthur, Ian (SELEX GALILEO, UK) wrote: > This version of the patch might be a bit better, though I'm not > convinced the behaviour is striclty identical to before - the "password" > test now shows a default focus, pre-patch it had no defualt selected, as > far as I can tell... Though it seems to be OK in the "new" way?
IMHO this wouldn't be any better, because it would give the focus to button 0 only when the window is created and not when it is reused later. Please see my revised patch. It fixes the focus issue by calling take_focus() *after* show()ing the window instead of before (it was all there in the code, but didn't work anymore with my patch). I have no idea why my patch changed the behavior of take_focus() in such a way, but I'll investigate this later - I'm really curious. If anybody could tell me, I'd appreciate it... Albrecht _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
