bug? Fl_Group::color requires a box style.

6 views
Skip to first unread message

Spacen

unread,
Aug 11, 2016, 12:15:33 PM8/11/16
to fltk.general
    Fl_Group *group1 = new Fl_Group(10,35,200,200,"group1");
    group1->box(FL_BORDER_BOX);

    Fl_Button *b1 = new Fl_Button(201, 10,90,25,"Button A1");
    Fl_Button *b2 = new Fl_Button(50, 90,90,25,"Button A2");
    Fl_Button *b3 = new Fl_Button(50,120,90,25,"Button A3");

    group1->end();
    group1->color(0xff000000);

In order for group1 to display as red, it also needs FL_BORDER_BOX set. I would have thought you could have a red group box without any border?
Reply all
Reply to author
Forward
0 new messages