> Matthias wrote:
> On 23.02.2011, at 21:22, corvid wrote:
>
> > I wrote:
> >> If the widget flag enum says:
> >>
> >> INVISIBLE = 1<<1, ///< the widget is not drawn but can
> >> receive events
> >>
> >> then why is visibility required in:
> >>
> >> unsigned int takesevents() const {
> >> return !output() && active_r() && visible_r();
> >> }
> >
> > I ask this because the fltk2 dillo uses a search bar that works by receiving
> > shortcut events even when invisible.
>
> Normal widgets will not receive shortcut events when hidden, or any of their
> parents is hidden. There are a few events that still go through though, HIDE,
> SHOW, ACTIVATE, DEACTIVATE for example.
>
> Shortcut events will ultimately be sent to a custom handler. See: void
> Fl::add_handler(Fl_Event_Handler ha); and void Fl_Menu_::global();
Okay.
Would you consider it wrong that it works in FLTK2?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk