Re: [fltk/fltk] Clarify documentation of Fl_Widget::visible_focus() (Issue #366)
leen
Jun 05, 2023
I just want to disable drawing the dotted rectangle inside some widgets for better appearence (eg. browser item, tree item) while keeping keyboard navigation.
But as the document says:
If visible focus is switched on, FLTK will draw a dotted rectangle inside the
widget that will receive the next keystroke. If switched off, no such indicator
will be drawn and keyboard navigation is disabled.
Both Fl::focus(Fl_Widget*) and Fl_Widget::visible_focus() will disable the keybord navigation.
After investigating the codes of fltk-1.4.x-20230512-7a50c823, I havn't found any way just preventing draw dotted rectangle.
In my option, it would be better if there were two methods:
Fl::visible_foucs() for drawing dotted rectagle or not.
Fl::enable_foucs() for keybord navigation or not. Ofcause, if dissabled, dotted rectangel neither drawn.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/366/1577822804@github.com>
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.