imm wrote:
> OK - but you need to be aware that relying on the clip region to only
> show the bit of your scroll that is visible might not be the most
> efficient solution (although it will work.)
>
> If the full area of your scroll is very large, it is possible that
> your program will still expend effort rendering the bit that is never
> going to be seen - so you may need to be clever when handling the
> drawing of your scroll area so that only the parts that are near the
> viewable region get recomputed.

Indeed, I thought about it and it's possible that my app expends unnecessary 
effort.
But I maybe found another solution.
I noticed that my pb doesn't occur when I use the Fl_Scroll class.
So I could derive my own class not from Fl_Group,
but from Fl_Scroll and set type(0) (no scrollbar).
I know it look a little bit "non sens" but it would allow
me to avoid all this clip managements.
I guess the Fl_Scroll class manages this clip properties
much better than I would.


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

Reply via email to