FLTK logo

Re: How to disable dotted square over Fl_Button

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: How to disable dotted square over Fl_Button Daniel King Mar 25, 2008  
 
> > 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.
>

Oh, I found another one, clear_tab_to_focues(). It takes effect!
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.