> Dear All,
> Now I am using fltk1.3, I have the following sample code.
>
>
> Fl_Button *b1 = new Fl_Button(200, 200, 800, 250, "&Beep");
>
> b1->labelcolor(FL_BLUE);
>
> b1->labelsize(36);
> printf("text size = %d\n", b1->labelsize());
> b1->box(FL_NO_BOX);
>
> But the font display is still 14pix but not 36, the print message shows the
> text size is 36. Why?
>
> Best regards,
> Leo
I have test the hello.cxx sample, it also has the same result.
the following is the hello.cxx code.
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->labelfont(FL_BOLD+FL_ITALIC);
box->labelsize(36);
box->labeltype(FL_SHADOW_LABEL);
window->end();
window->show(argc, argv);
return Fl::run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk