|
|
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>
[ Direct Link to Message ] | |
|
| |