> 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?
"SebHoll" <[email protected]> wrote in message
news:[email protected]...
> Ah, OK. That sound's like just the thing I need.
>
> Just to check, the widget will still be available to receive keyboard
> input, though?
>
> 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?
>
> Cheers
>
> "Albrecht Schlosser" <[email protected]> wrote in message
> news:[email protected]...
>> Albrecht Schlosser wrote:
>>
>>> Fl_Widget::visible_focus(0);
>>>
>>> will do the job for single widgets.
>>
>> Addition: please note that this will also exclude the widget
>> from normal <tab> (and arrow key) navigation.
>>
>> Albrecht
>
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk