> > I'm sort of guessing, but I think you just have to put
> > scrlBar->redraw() at the end.
>
> I've tried of course, but it doesn't work.
Ah, I see. Well, until someone can give you a real answer,
here's a horrible hack that seems to work
class Scroll : public Fl_Scroll {
public:
Scroll(int x, int y, int w, int h, char const* label = 0)
: Fl_Scroll(x, y, w, h, label)
{;}
void draw()
{
Fl_Scroll::draw();
if(scrollbar.visible() && hscrollbar.visible()) {
color(FL_GRAY);
}
else {
color(FL_WHITE);
}
Fl_Scroll::draw(); // again
}
};
HTH
Stan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk