Duncan Gibson wrote:

> Two problems that I can see:
> 1. container1 is an Fl_Double_Window, so when you create it, it becomes
>    the current group, so container2 is added to container1 and not to
>    your MySplitter widget. Add an end() after container1->color line
>    and a begin() before the container2 allocation.

Yes, it seems to be the solution.
I didn't know we could have several begin() end() in an Fl_Group widget. I 
thought that just one was allowed.

> 2. container2's x-position should be x + w/2, no?
It doesn't matter here. w/2 or x + w/2 give the same result.

Now the last pb is that all is drawn in my draw method
doesn't appear anymore.
I think that the Fl_Window widgets prevent drawing but I don't know how.


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

Reply via email to