> MySplitter(int x, int y, int w, int h, const char *l = 0)
> : Fl_Group(x, y, w, h, l)
> {
> begin();
> container1 = new Fl_Double_Window(x, y, w / 2, h);
> container1->set_non_modal();
> container1->box(FL_DOWN_BOX);
> container1->color((Fl_Color) FL_RED);
>
> container2 = new Fl_Double_Window(w / 2, y, w / 2, h);
> container2->set_non_modal();
> container2->box(FL_DOWN_BOX);
> container2->color((Fl_Color) FL_BLUE);
> end();
>
> }
Is your second window simply being drawn in the wrong place?
You have:
container2 = new Fl_Double_Window(w / 2, y, w / 2, h);
But maybe that needs to be:
container2 = new Fl_Double_Window( (x + w / 2), y, w / 2, h);
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