> void resize(int x, int y, int w, int h)
> {
>   Fl_Double_Window::resize(x,y,w,h);
>
>   if(scrlBar->hscrollbar.visible() && scrlBar->scrollbar.visible())
>   scrlBar->color((Fl_Color) FL_GRAY);
>   else
>   scrlBar->color((Fl_Color) FL_WHITE);
> }
>
> It works with a "one step delay".
> I mean when I run the app, there's just one scrollbar visible but
> the scrollbar widget is gray. To get it in white, I have to resize a little 
> the window .
> How can I solve this pb and what are the steps (resize(), redraw() etc....) 
> when a widget is resized ?
>
> Thanks

I'm sort of guessing, but I think you just have to put
scrlBar->redraw() at the end.

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

Reply via email to