On my FLTK working source I have in all places where Fl:visible_focus() is
used like in:
"if (!Fl::visible_focus() && visible_focus()) return
Fl_Group::handle(event);"
Because this way I can turn on and off those tests on a per widget base,
because I notived that there is a bit flag for it on each widget but is
never used and I had the need to overwrite the global settings on some
widgets.
Reviewing my code I could see why, the main reason for that is Fl_Output I
don't want then to receive focus but surprisingly FLTK transfer focus to
Fl_Output.
I think that is a good idea to have this option and I propose it to be
included on FLTk !
I have a code like this on an app made with luafltk:
function _checkVisible_(wg)
for i=0, wg:children()-1 do
local child = wg:child(i)
if tolua.type(child) == 'Fl_Output' then
child:visible_focus(0)
end
if child:as_group() then _checkVisible_(child) end
end
end
En 18/12/2010 20:23:30, Albrecht Schlosser <[email protected]> escribió:
> I removed the "visible_focus" change from my patch, because this is
> another independent change, and I'm not sure whether it is correct.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev