I whant to do a simple thing, to show a window inside other window.

The function

fltk::Window::show_inside(Window * parent)

should do it, but it does not show the window and application can not leave 
fltk::run()

Code:

    fltk::Window * outer = new fltk::Window(500,500, "outer");
    fltk::Window * inner = new fltk::Window(100,100, 200,200, "inner");
    inner->begin();
        new fltk::Button(20,20,50,50, "some button");
    inner->end();
    outer->show();
    inner->show_inside(outer);
    return fltk::run();


Where is the problem? Is it in FLTK or in the code shown above?

P.S.
I am using mingw on Windows.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to