|
|
Hi Ian,
The following code is something similar to what I am trying to do in my application:
int main(int argc, char **argv) {
Fl_Window *window = new Fl_Window(340,180);
Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
box->box(FL_UP_BOX);
box->color(fl_rgb_color(0x08,0x09,0xCC));
box->align(FL_ALIGN_INSIDE | FL_ALIGN_TOP | FL_ALIGN_LEFT | FL_ALIGN_WRAP);
box->labelcolor(FL_WHITE);
box->labelfont(FL_HELVETICA_BOLD);
box->labelsize(36);
window->end();
window->show(argc, argv);
return Fl::run();
}
I am trying to set the label color with labelcolor() function. While doing this the color of the text is pinkish instead of white. The same thing when I do with FLTK 1.1.7 appears white. The problem is with FLTK 1.3.0
[ Direct Link to Message ] | |
|
| |