|
|
> On 25 Mar 2008, at 18:38, Dmitry wrote:
>
> >
> >>> I need to disable dotted square when pressing Fl_Button, how
> >>> can I do it?
> >>
> >>
> >> my_button->clear_visible_focus();
> >
> > I did it in callback of my_button. But widget draws it anyway. The
> > reason why i want to get rid of the square is that when using
> > rounded boxes, FLTK draws the square over background and I have to
> > redraw background always after pressing button... So I'm searching
> > for way to disable drawing focus square over button.
>
>
> Which you do by calling:
>
> my_button->clear_visible_focus();
>
> Don't do this in the callback - do it when you declare the button. It
> is a property of the widget, not a drawing call.
>
>
>
>
>
How to do it in fltk2? I fount a method called clear_click_to_focus(), but no effect.
[ Direct Link to Message ] | |
|
| |