From: Kevin S. <kev...@ya...> - 2002-01-25 03:39:36
|
--- Takaaki Tateishi <tt...@kt...> wrote: > cix <mc...@gm...> wrote: > > The Group handle "hides" the Widget' one, so that I > > never reach Contained::handle(e) if not removing > > Container::handle(e). > > I don't know how to solve the problem. Did I miss > > somehing? > > See the section "Handling Events" of FLTK's manual. > The Group#handle(e) (or super(e) in Container#handle()) > is > propagates the event to children widgets. > So this means the event is not sent directly to children > widgets, I think. This is correct. The event is sent to the Container group, which is responsible for sending it to the appropriate child. The code that does that is in FLTK itself. So the simple fix in this case is to replace the 'return false' at the end of your Container#handle method with a line that just says: return super(e) Kevin __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com |