mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
Updated documentation to explain which events are sent to an inactive window. This is IMHO better than "fixing" this because old code may rely on that feature. We are not losing out on anything here anyways. STR #1513.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -138,10 +138,13 @@ will destroy all of the child widgets and groups in that group.
|
|||||||
|
|
||||||
<P><TT>Fl_Widget::active()</TT> returns whether the widget is
|
<P><TT>Fl_Widget::active()</TT> returns whether the widget is
|
||||||
active. <TT>Fl_Widget::active_r()</TT> returns whether the
|
active. <TT>Fl_Widget::active_r()</TT> returns whether the
|
||||||
widget and all of its parents are active. An inactive widget
|
widget and all of its parents are active. Inactive widgets
|
||||||
does not get any events, but it does get redrawn. A widget is
|
will be drawn "grayed out", e.g. with less contrast than the
|
||||||
only active if <TT>active()</TT> is true on it <I>and all of its
|
active widget. Inactive widgets will not receive any keyboard or
|
||||||
parents</I>.
|
mouse button events. Other events (including <tt>FL_ENTER</tt>,
|
||||||
|
<tt>FL_MOVE</tt>, <tt>FL_LEAVE</tt>, <tt>FL_SHORTCUT</tt>, and
|
||||||
|
others) will still be sent. A widget is only active if
|
||||||
|
<TT>active()</TT> is true on it <I>and all of its parents</I>.
|
||||||
|
|
||||||
<P>Changing this value will send <TT>FL_ACTIVATE</TT> or <TT>
|
<P>Changing this value will send <TT>FL_ACTIVATE</TT> or <TT>
|
||||||
FL_DEACTIVATE</TT> to the widget if <tt>active_r()</tt> is true.
|
FL_DEACTIVATE</TT> to the widget if <tt>active_r()</tt> is true.
|
||||||
|
|||||||
Reference in New Issue
Block a user