On Aug 21, 2007, at 8:25 PM, Stan wrote: >> 3. Also, the docs say that I _may_ want to use this default >> callback? If >> so, for what purpose/what could I do with it? > > Just think of it as "no callback." For instance, in your example you > could replace if(callback()) with if(callback() == > fl::default_callback) > and say callback(fl::default_callback) instead of callback(NULL).
Also, the default callback for some widget type may do something useful. The default callback for Fl_Window-derived widgets allows an application to quit when the user hits ESC. This can be overridden of course. ---- http://robowerk.com/ _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

