On 3 Aug 2009, at 20:43, Michel Schmid wrote: > I would like to have a Fl_Scroll area, but without the scrollbars. > As a substitue for the scrollbars i would like to draw two buttons > which stand for the up- and down-arrows and have the same > functionallity. So they should trigger the same event... > > The goal is that I still have a scrollable area, but one who I can > customize more to my GUI-Style. > > The reason is, that the scrollbars don't look good in my GUI for an > embedded system. Has anybody ever done this? Or has anybody a clue > what's the easiest workarround to get this...?
There are a few things you can do, although they all take a little bit of work. I guess it depends a lot on what you want to put in your scroll region... What I've done in the past is either: - Draw everything into an fl_offscreen() then blit the required viewport rectangle onto the display widget (just a subclassed Fl_Box) - Draw everything into a Fl_Group that's the full size of the scroll, then reposition the Fl_Group origin to make the scroll "move" and set the clip region to make sure just the "correct" bit gets redrawn. - And variations on the above... _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

