> >     Fl_Check_Button* flcb =3D ((Fl_Check_Button*)w);
> > if ( flcb->value() =3D=3D 1 ) {
> > flcb->labelcolor(FL_RED);
> > flcb->label("Label&Scale");
> >                 new Fl_Box(0, 20, 1000, 20, " first ");
> >                 new Fl_Box(0, 640, 1000, 20, "  second ");
> >                 new Fl_Box(0, 660, 1000, 20, " third ");
> 
> 
> How could I add these three new Box classes to the parent window???


By using the ::add() method....


        Fl_Box *b = new Fl_Box....

        my_window->add(b);


This is covered in the docs, so a little reading might bring further
enlightment.




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to