A nasty problem I got:
From the main window a second window is opened
In this second window a dialog is opened.
After closing the dialog different returns are found
Using the program from simply fortran for testing control returns with the second window on top.
But if the program runs directly under windows, without using SF, the main window appears on the foreground and that is not the intention.
How can I try to tackle the problem?
The dialog in the second window (initW) starts as follows:
initW = getcurrentwindow() ! keep the previous window in memory for later return
! ______________________ open dlg-window__________________________________
dlg_screen = initwindow(250, 360, title = "Secundary Stiffening", closeflag = .false.)
And it ends with:
Call setcurrentwindow (initW)
May be this info is too short to give a hint and I have to make a tiny testprogram first?