imacarthur wrote:
>> int handle(int e) { // Window's handle()
>> method -- called by
>> FLTK on any window event
>> int ret = Fl_Window::handle(e); // Pass all events to
>> Fl_Window base class so it can process them
>
>
> I think for Michael's use-case I might add;
>
> if(ret) return ret;
>
> at this point, my thinking being that, since Fl_Window is a container
> widget, one of it's children may laready have consumed the event by
> this point (test in Fl_Window::handle(e)) so we do not necessarily
> want to handle it again in that case.
Yes, good point; that way if the window has widgets in it,
clicking on the widgets won't cause the PUSH/RELEASE events
above to be triggered, since I take it you only want events
when clicking on the window's background.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk