My child windows open in a cascading manor across the MDI frame even if the preceeding window(s) have been closed. This becomes annoying when you start to get down the screen, the bottom of the windows are below the screen bottom and you have to drag them up. I know I can use the INITX and INITY parameters when I create the window from the MDI frame, but that can cause the windows to pile on top of each other. So my question is: Is there a way to allow cascading of child windows, but have them start at the top if no others are open?
In a related area. I noticed that child windows with the Return 1 in the CREATE event script can have multiple openings. Windows with Return 0 open only once. Is there any problems using Return 0 in the CREATE event? For that matter can anyone tell me the strengths and weaknesses of using Return 0 or Return 1 in the CREATE script of child windows?
cascading windows .. what version of OI are you using?
7.2.1 - Maybe I used the wrong term. Each window opens lower and to the right of the previous window.
Andrew,
The cascading MDI child windows is a default behavior of Windows and not just OI, I suspect. As a consequence, many OI developers center their child windows in the MDI frame or open them to calculated or absolute positions. When centering or positioning a window programmatically during create, the window's VISIBLE property should be set to False$ in form designer. When the SIZE property is set to position the window, the window will become visible.
Gerald
i believe if you are opening the first window it opens top left (relative) and each one drops and right ..
if you close all the children then open again they start top left …..
at least that is how i remember vb working .. but you are probably correct and i should have stayed out of it
Thanks for the help. We haven't released the application yet, and I know that would have been one of the first complaints. A lot of times it doesn't matter what it does, but how it looks.
See this KB article "Centering an MDIChild Window Within an MDIFrame" and the related "Centering a Window on Your Desktop"
You can adapt the algorithm to align in the upper left corner.
Dave,
That's the way 7.2.1 should work - as long as the Start_MDIChild "initialappearancemode" argument is 0. It was a problem prior to this if you left it as null - now it should default to 0…
World leaders in all things RevSoft