>
> * FLUID sets group attributes for no reason
> Can't "fix" this without breaking anything else. And I would love to
> avoid another checkbox in the Fluid UI. Suggestions are welcome.

Try the following test.  On my system, fluid is setting the
group attributes to values they already have.  Are you
sure that the fix would break anything?  It's hard to see how.

#include <FL/Fl_Group.H>
#include <iostream>

void attributes(Fl_Group* o)
{
   std::cout << "box: " << (int)o->box() << '\n';
   std::cout << "color: " << (int)o->color() << '\n';
   std::cout << "select color: " << (int)o->selection_color() << '\n';
   std::cout << "label type: " << (int)o->labeltype() << '\n';
   std::cout << "label font: " << (int)o->labelfont() << '\n';
   std::cout << "label size: " << (int)o->labelsize() << '\n';
   std::cout << "label color: " << (int)o->labelcolor() << '\n';
   std::cout << "align: " << (int)o->align() << '\n';
   std::cout << "when: " << (int)o->when() << '\n';
}

int main()
{
    // Without setting anything
    Fl_Group* oo = new Fl_Group(25, 25, 15, 15);
    oo->end();

    // Setting attributes the way fluid does
    Fl_Group* o = new Fl_Group(25, 25, 15, 15);
    o->end();
    o->box(FL_NO_BOX);
    o->color(FL_BACKGROUND_COLOR);
    o->selection_color(FL_BACKGROUND_COLOR);
    o->labeltype(FL_NORMAL_LABEL);
    o->labelfont(0);
    o->labelsize(14);
    o->labelcolor(FL_FOREGROUND_COLOR);
    o->align(FL_ALIGN_TOP);
    o->when(FL_WHEN_RELEASE);
    o->end();

    std::cout << "Without:\n";
    attributes(oo);
    std::cout << "\nWith\n";
    attributes(o);
    return 0;
}


>
> * FL_WHEN_NOT_CHANGED implemented inconsistently
> I have no time to fool around with buttons. OP, please tell me what
> exactly you would like to see changed. I thing this is the first
> complaint ever I got for this flag in over ten years.
>

I wonder if anybody uses it.  My own experience was that it soon
became clear that it doesn't really work, and I simply abandoned it.
If there's not time to fix it, how about just removing it from
the docs (retain it in the code as an undocumented feature, so
as not to break anything).

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

Reply via email to