> Using FLUID, I created 2 Groups. I made 1 of them an instance
> of a C++ class called MyGroup. This is the FLUID output:
>
> { Fl_Group* o = new Fl_Group(25, 25, 15, 15);
> o->end();
> } // Fl_Group* o
> { MyGroup* o = new MyGroup(25, 25, 15, 15);
> 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();
> } // MyGroup* o
>
> Ironically, I'd be quite happy to use the default attribute
> values for an "out of the box" Fl_Group, but I want to set
> my own attributes in MyGroup's constructor. Is there anything
> to be done about this?
>
> TIA,
> Stan
What about using this: New->Code->Widget class and set Class: Fl_Group,
Name: MyGroup, Extra code: (additionaly stuff). Hoping you got with this
MyGroup; also you got new window from you will pick X,Y,W,H.
Then in Double_Window widget (in fluid list), Extra code:
MyGroup* g = new MyGroup(X,Y,W,H), where you X,Y,W,H copy from MyGroup
widget.
Hoping there is better solution than this.
--
Sanel
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk