> Edward Arthur wrote:
> >> I have an Fl_Button which is label-less ("") and I want it just display 
> >> the background color FL_BLACK or FL_GRAY.  I have the application set up 
> >> so that when I click on it, the color toggles correctly - but I have an 
> >> array of these buttons and I'm right (or left) shifting them and I'm 
> >> applying "b[i]->color(value ? FL_BLACK : FL_GRAY);" but the button does 
> >> not change color.  Do I need to respecify the empty label?
> >
> > OK, answering my own question here: setting a blank label (even though it 
> > was blank to begin with) worked.
>
> Yeah, really all you need to do is call the redraw() method...

Michael, that's 100% more elegant, cheers.

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

Reply via email to