On 8 Dec 2007, at 9:12, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote: > > Actually I'm trying to create a scrollbar class of my own (a > subclass of Fl_Group). > I know, the Fl_Scroll class do that job in FLTK, but I prefer to > build mine in order to manage both scrollbar exactly the way I want > to.
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. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

