Hi,Albrecht!I have solved the problem by subclass the widget by rewriting its
handle function.Actually,there are two ways,first,I make the subclass's handle
function simply return 0,so its parent get the DND event.But the widget won't
be able to work anymore.The other way,I tried this way:
int handle(e)
{
swich(e)
{
case FL_DND_RELEASE:
return (this->getparent())->handle(e);
default:
return Fl_Output::handle(e);
}
} //my widget is an object of Fl_Output
It worked well,and our widget worked well too.So,this is the best way for
current methods I think.
On the other hand,I think it may still work by set the attributes of the window
and the widgets to change the event messages' dispatch.However I have not got
the condition to prove it,I am still learning,maybe I will figure it out later.
By the way, my project is done,thank you all for help.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk