>
> On 28.01.2011, at 23:11, Giau P wrote:
>
> > I have a class inherits from Fl_Gl_Window. I want this window have a =
> FL_DOWN_BOX feature such as in Fl_Box. How can I do that?
>
> Fl_Group *group =3D new Fl_Group(10, 10, 300, 400);
> group->box(FL_DOWN_FRAME);
> group->begin();
> Fl_GL_Window *gl =3D new Fl_GL_Window(
> 10+Fl::box_dx(FL_DOWN_FRAME), 10+Fl::box_dy(FL_DOWN_FRAME),=20
> 300-Fl::box_dw(FL_DOWN_FRAME), 400-Fl::box_dh(FL_DOWN_FRAME));
> group->end();
> group->resizable(gl);
>
>
>
Thanks. I have tried it, but it does not do anything.
In main, I have:
win = new Fl_Double_Window(1000,750, "Window");
win->begin();
something = new Something();
win->end();
win->resizable(paramwin);
win->show();
return(Fl::run());
In my Something class, I have a constructor as you suggested. My constructor is
as follow:
Something(int X, int Y, int W, int H, const char* L) :
Fl_Gl_Window(X+Fl::box_dx(FL_DOWN_FRAME),
Y+Fl::box_dy(FL_DOWN_FRAME),
W+Fl::box_dw(FL_DOWN_FRAME),
H+Fl::box_dw(FL_DOWN_FRAME),
L)
{
.....
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk