> Hello !
>
>
> > This "label over border" style used to be common in win32 apps
> >(though MS seem to have moved away from that style over the years).
>
> Personally i hope the M$ group style will become the default one in
> FLTK.
>
> It always looked more logical to me to have it that way, than the FLTK one.
>
>
> CU
>
Looking for where labels xywh are set was murky. Instead I just created a
class for now:
//
// Class to create a traditional looking group box
//
class Fl_Groupbox : public Fl_Group
{
protected:
Fl_Box Text;
public:
Fl_Groupbox(int x,int y,int w,int h, const char *label = 0) :
Fl_Group(x,y,w,h), Text(x, y, w, 0, label)
{
box(FL_BORDER_BOX);
Text.measure_label(w, h);
Text.size(w+8, h);
Text.position(x+5, y-(h/2));
Text.labelcolor(FL_INACTIVE_COLOR);
Text.box(FL_FLAT_BOX);
};
virtual ~Fl_Groupbox() { };
virtual void hide()
{
Text.hide();
Fl_Group::hide();
}
virtual void show()
{
Fl_Group::show();
Text.show();
}
};
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk