> Stan wrote:
> > In fltk 1, in Fl_Widget.H, we find
> >
> > void do_callback() {callback_(this,user_data_);
> > if (callback_ != default_callback) clear_changed();}
> >
> >
> > If the clear_changed() were done first, a user that wanted
> > to do a callback without clearing the changed bit could
> > reset the bit inside the callback. As it stands now, one
> > is SOL, I think.
>
> But then how would the callback know that something had changed (vs
> pressing Enter or leaving the widget)?
>
By being called WHEN_CHANGED.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk