Thanks Greg! This is exactly what the problem was... as usual you have been a 
great help.

-Jeff

> On 10/25/11 14:39, Jeff Paranich wrote:
> > I've somehow worked around this issue before, thinking I understood what 
> > was going on... now I'm not so sure I understand much of anything!
> >
> > Say I have two classes...
> > fooA  which subclasses Fl_Window
> > fooB  which also subclass Fl_Window
> >
> > And, fooA will instantiate fooB
> > The problem is when I call show() on fooB from within fooA, the fooB window 
> > inlays into the fooA window (there is no OS toolbar on the top to 
> > click/move/resize/close/minimize the window, no window frame, etc).
>
>       If you want to create fooB within the methods of fooA, but
>       want it to be a /separate/ window (not one inside the other),
>       then don't use begin()/end() around it.
>
>       So instead of:
>
>    begin();
>    fooBptr = new fooB(0,0,200,200,"FooB Window");
>    end();
>
>       ..which will make fooB a child window of fooA,
>       you would instead want, I think:
>
>    begin();
>    // any stuff here EXCEPT creating fooB
>    end();                                             // end definition of 
> fooA
>    Fl::current(0);                                    // disable parenting
>    fooBptr = new fooB(0,0,200,200,"FooB Window");     // create fooB 
> unparented
>
>       ..so that fooB isn't parented to fooA, but is instead
>       a separate window.

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

Reply via email to