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
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to