Call first the group handle and then decide if you want to throw away the result of the children or not:
int ret=Fl_Group::handle(e); if (e==Fl_PUSH) {/*do my own group handle stuff here*/ return(1);} return(ret); This should keep the child widgets responsive (apart from the FL_PUSH). But you can play with Fl:event_inside to make the child widgets respond to FL_PUSH as well. Cheers, Herman On 07/29/2012 05:05 PM, dirac wrote: > FLTK version 1.1.10 > > Hi guys, I've noticed that Fl_Group never fires its callback (i.e. no > do_callback inside the Fl_Group::handle method). > > I need to build a clickable Fl_Group, so I override its handle method: > > ------------------------------------------------------------------ > int myGroup::handle(int e) { > > int ret = 0; > > switch(e) { > case FL_PUSH: > do_callback(); > ret = 1; > break; > } > > return ret; > > } > ------------------------------------------------------------------ > > That solution works for the Fl_Group, but unfortunately all of its > children no longer react to events; that's because, by overriding > the method, I've lost all the pretty code which distributes the > events to leaf widgets - am I right? > > In your opinion, is there a clean/easy way to make a Fl_Group > clickable? > > Many thanks in advance! :) > > > John _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk