FLTK logo

Re: [fltk/fltk] Fl::focus(Fl_Widget*) should be independent 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] Fl::focus(Fl_Widget*) should be independent of Fl_Widget::visible_focus() (Issue #366) erco77 Jan 12, 2022  
 


On 1/12/22 6:42 AM, ManoloFLTK wrote:
>
> I confess I'm lost about what's the purpose of Fl_Widget::visible_focus(int) .
>

    As I recall, with respect to button widgets, it was the way to disable the focus box
    from being drawn on e.g. button like widgets where the focus box is inappropriate
    to see due to the needs of the application, such as buttons that are flat or invisible,
    and not intended to be seen as a button (e.g. invisible buttons positioned over images
    or other graphics, or buttons that had to be clicked to be activated, and never pushed
    by keyboard activity, etc)

    IIRC disabling this had the effect of disabling the widget from taking focus,
    perhaps to prevent accidental triggering by a stray keyhit because there's
    no visual feedback to the user that the widget has focus.

    I'm only familiar with this feature in the context of buttons, not input widgets.



Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/366/1011468651@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'.