DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2574
Version: 1.3-current
Attached file "invisible.patch"...
Link: http://www.fltk.org/str.php?L2574
Version: 1.3-current
Index: FL/Fl_Widget.H
===================================================================
--- FL/Fl_Widget.H (revision 8287)
+++ FL/Fl_Widget.H (working copy)
@@ -753,7 +753,7 @@
\retval 0 if the widget takes no events
*/
unsigned int takesevents() const {
- return !output() && active_r() && visible_r();
+ return !output() && active_r() && (!parent() ||
((Fl_Widget*)parent())->visible_r());
}
/**
Index: src/Fl_Widget.cxx
===================================================================
--- src/Fl_Widget.cxx (revision 8287)
+++ src/Fl_Widget.cxx (working copy)
@@ -271,6 +271,7 @@
}
void Fl_Widget::hide() {
+ set_flag(INACTIVE);
if (visible_r()) {
set_flag(INVISIBLE);
for (Fl_Widget *p = parent(); p; p = p->parent())
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs