Hi all,

I want to colorise the little square appearing at the
right bottom of an Fl window widget when both of the
scrollbars (Fl_scroll) are visible.
So I put this in the my window widget class:

Fl_Scroll *scrlBar;

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
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to