[..]
> As the code goes:
>       a) Handle your selection of a square in a single handle() function in a
> global container like a derived group that contains all squares and
> always return 1.  That will avoid fltk from having to dispatch 100000+
> handle calls to each square.  On a pick, that function should select and
> set a redraw on the proper square directly.
[..]

I think (though I'm far from certain), that this could also
be accomplished by returning 1 from your Draw::handle()
in all cases, rather than using Fl_Widget::handle() for
the default case.


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to