FLTK logo

Re: Text color Problem

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Text color Problem Jayaram Jun 21, 2012  
 
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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.