FLTK logo

Re: [fltk/fltk] Clarify documentation of Fl_Widget::visible_focus() (Issue #366)

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.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Clarify documentation of Fl_Widget::visible_focus() (Issue #366) leen 20:00 Jun 05  
 

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:

  1. Fl::visible_foucs() for drawing dotted rectagle or not.
  2. 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 ]
 
     
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'.