> On 02.01.2013 13:14, Albrecht Schlosser wrote:
..
> >

> >    Fl_Widget *fw = Fl::focus(); // save focus widget
> >    int ret = Fl_Scroll::handle(event);
> >    if (ret && fw != Fl::focus) { // event used and focus changed
..
> Albrecht
>

Thanks for all this, Albrecht. I started mucking with an Fl_Scroll subclass & 
custom handle(), and decided to track the focus widget in the same way as you. 
I hadn't though to cut the test down to that one if statement - big help.

Now working on determining dx/dy. I'll post my subclass when I'm all done.

Cheers -

Denton


_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to