
Can you give me a real world example where you need the "capturing" phase for any reason other than a hack for some other design problem? I just can't think of any. Thank you. On Sat, Sep 4, 2010 at 13:57, Gottlob Frege <gottlobfrege@gmail.com> wrote:
On Sat, Sep 4, 2010 at 4:44 AM, Yakov Galka <ybungalobill@gmail.com> wrote:
That's right because event passing should be more complicated than just calling the right callback function. Consider keyboard input. Keyboard is
shared resource, therefore keyboard events must be forwarded from the focused window up the chain of its parents until some handler marks explicitly that it handled the event. I'm not familiar with any
a framework/OS
which handles keyboard input this way (if you know, tell me please), but it seems that this approach will eliminate the necessity of message filtering to implement accelerators, for example.
Messages should be sent down from parent to child, then back up. Some systems do parent down. Others do child up. Both end up needing hacks to handle the exceptional cases. So do both. See ActionScript 3.0.
http://www.adobe.com/devnet/actionscript/articles/event_handling_as3_03.html
Tony _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost