|
|
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: https://www.fltk.org/str.php?L3528
Version: 1.4-current
Note: I wrote "FL_DROP" in comment 2 but this should read "FL_RELEASE" of
course.
Regarding a possible solution (just a thought): you could probably call
Fl_Group::handle() later *after* handling FL_DRAG and other events if and
only if the event was not handled by Fl_Tree. I see that there are some
status variables, for instance (in 'case FL_DRAG'):
if ( _lastpushed == PUSHED_NONE ||
_lastpushed == PUSHED_OPEN_CLOSE ) return 0;
etc.. Would it make sense to handle the FL_RELEASE event only if an Fl_Tree
object (item) was pushed/dragged/released and call Fl_Group::handle() later
and only if the event was NOT handled by Fl_Tree::handle()?
Technically speaking: set the above mentioned 'ret' variable to 1 if we
handled the event and call Fl_Group::handle() only if ret == 0 ? Or
something like this...
Link: https://www.fltk.org/str.php?L3528
Version: 1.4-current
[ Direct Link to Message ] | |
|
| |