I have been implementing a c++ wrapper for libcurses. So far the design utilizes the composite pattern to represent the relationships between widgets <-> windows. I've advanced to the point where I want to design event and focus handling facilities within the widget hierarchy.
I'm having particular difficulty with regard to focus handling and the dispatching to target widgets (those with focus).
Is there anywhere online that presents an extensive OO model for managing this behavior, perhaps even with stub code to demonstrate whats under the hood of a dispatcher and focus handler?
Also, if someone saavy on the topic comes by I wouldn't mind discussing it here.