On 14.04.2010, at 16:45, SebHoll wrote:
>> E.g. clicking on an item in Fl_Browser, giving the widget focus, and then
>> using up-down arrow keys would still change the selected item?
>
> Ah, just tried now, and it doesn't. Hmmmm...
>
> Would the easiest was of adding this functionality be defining a new flag,
> say "NO_FOCUSRECT" in Fl_Widget.H, and then change...
>
> void draw_focus() {draw_focus(box(),x(),y(),w(),h());}
>
> ...to...
>
> void draw_focus() { if ( !(flags() & NO_FOCUSRECT) )
> draw_focus(box(),x(),y(),w(),h());}
>
> As it's quite a minor change, would there be any chance of this be adding
> officially?
What would be the advantage of not having a focus rectangle in one particular
widget while having it in others? It would confuse the user, wouldn't it? Or is
there a some specific reason I don't understand?
If you don't like the focus rectangle, you can disable it for the whole
application, for example if you use a touch screen.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk