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) Albrecht Schlosser 01:59 Jun 06  
 

@leenzhu Thanks for your comment and suggestion. I see your issue and agree that we might want to add another method that just inhibits drawing the focus rectangle (likely only per widget) but does not change the keyboard focus behavior. This should be investigated further.

You wrote:

Both Fl::focus(Fl_Widget*) and Fl_Widget::visible_focus() will disable the keybord navigation.

This statement doesn't seem to be correct (typo or copy/paste error?):

That said,

Note that we can't change the behavior of Fl::visible_foucs() because of backwards compatibility, hence this method will always do both, enable/disable keyboard navigation and enable/disable drawing the focus rectangle.

However, we can add new methods (either global: Fl::any_name() or per widget: Fl_Widget::any_name()) to enable and disable drawing the focus rectangle (replace any_name with a new method name).


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/1578238841@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'.