>
> I think the reason for grab() failing is a different one. Creating a
> window does not actually map a system window yet, so there is nothing
> to "grab" onto.
>
> I suggest that before you use "grab", you call show() and the
> Fl::flush() to make sure that window is actually visible before you
> do anything fancy.
>
> Or even:
>
>    myWin->show();
>    do {
>      Fl::flush();
>    } while (!myWin->visible() }
>

Matt, I posted a complete example, in which the subwindow
was shown before it was grabbed.  I just tried the flush()
loop you suggested; it has no effect whatsoever.

Previous posters have said that grab() isn't supposed to work
for windows not descended from the "main" window.  Do you disagree?

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

Reply via email to