Albrecht Schlosser wrote:
>> void Fl_Canvas::draw()
>> {
>> Fl_Touch_Scroll::draw();
>>
>> recalc_dimensions(); // <-- this was missing before my OP
>
> Here, you might have a look at Fl_Scroll::bbox() - a somewhat new
> method, maybe not (yet) documented.
You're right. It's not documented. I checked the online docs and the
installed docs.
By looking at the source, it looks like a better version of my
recalc_dimensions(). It's better since it accounts for the placement of the
scrollbars. :)
I'll file an STR on this and another RFE for Fl_Scroll to adjust its
scrollbars outside of draw() as well.
Thanks for the pointer to Fl_Scroll::bbox() :)
--
Alvin
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk