On Thu, 19 Feb 2009 01:53:47 -0800, Albrecht Schlosser wrote:
>> int main()
>> {
>> outer = new fltk::Window(500,500, "outer"); inner = new
>> fltk::Window(200,200, "inner"); outer->begin();
>> fltk::Button *b = new fltk::Button(20,20,50,50, "button");
>> b->callback(callback);
>> outer->end();
>> outer->show();
>
> inner->show(); // <<<<< add this here <<<<<<
>
>> return fltk::run();
>> }
>
> Does this work? Maybe it would also work, if you add inner->show() just
> before inner->show_inside() in your callback.
>
> Albrecht
show_inside() works as documented on linux:
> On systems that don't support nested desktops (i.e. X) this does
child_of
> (frame) and show(), which produces an overlapping window that will
remain
> above the frame window. (IMHO this is a great improvement over MDI!).
In Win32 that it's supposed to support nested desktops the inner Window
doesn't show up.
Although it's created. If you use inner->show() breaks the child-parent
relationship.
By using inner->show(outer) that implements the X way (child_of()) of
nested desktops, works the same way on Win32 too.
I'm not sure if show_inside() in Win32, is supposed to let windows only
be moved within the MDI parent window, but I prefer the X-like
implementation.
But that's just me :)
P.S. I love the still-in-alpha experimental fltk2 branch :)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk