Hi,

I build my own class derived from the Fl_Group widget.

class Myclass : public Fl_group
{
   Fl_Box *box1, *box2, *box3;
   ...

for more convenience I build a member function wich create and define all the 
Fl_box
widgets.

MyClass::createBox()
{
   box1 = new Fl_Box(0, 0, 100, 50);
   etc....


so now my constructor looks like this


   MyClass::MyClass(int x, int y, int w, int h, const char *l)
   : Fl_Group(x, y, w, h, l)
  {
    begin();

    createBox();

    end();
  }
   ...

since widgets are created throught a function the thing I'm wondering is:
Do the Fl_Box widgets are considered as added to the group or
should I explicitly use the add() function for each Fl_Box widget
created in my member function ?

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

Reply via email to