Percy,

I haven't tested yet - if I do I'll post more - but on first glance I'd suggest 
that the order of window creation (or rather, the order of setting the 
modality) may be a problem.

It seems that you set the ModalTwo window modal before creating any window for 
it to be "modal for", so that may well be confusing the window manager. Once 
that window is gone, well, things might be getting a bit perturbed...

Try creating your main window "Window" first, rather than last and see if that 
helps.

Also, I'd caution against calling any window "Window" since "Window" is a key 
word in some systems (though I imagine it is OK on winXX hosts!)

I'm also a bit concerned that you have defined your entry point as WinMain().
That's a bit of a weird, non-portable, Microsoft-ism and you should not do it 
in a fltk program. Just use main() as you would for any other C/C++ program.
Though I don't think that will be causing any harm in this instance, it is 
still "Bad Form".

Hope those suggestions get you moving forwards - time permitting I'll try your 
example and see if anything more comes up.




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

Reply via email to