Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

Child window cascading (OpenInsight 32-bit Specific)

At 28 APR 2006 02:33:25PM Andrew Wilson wrote:

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?


At 28 APR 2006 03:22PM dsig _at_ sigafoos.org wrote:

cascading windows .. what version of OI are you using?


At 28 APR 2006 04:51PM Andrew Wilson wrote:

7.2.1 - Maybe I used the wrong term. Each window opens lower and to the right of the previous window.


At 28 APR 2006 05:06PM Gerald Lovel wrote:

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


At 28 APR 2006 08:55PM dsig _at_ sigafoos.org wrote:

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


At 29 APR 2006 09:35AM Andrew Wilson wrote:

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.


At 30 APR 2006 09:41AM Warren Auyong wrote:

See this KB article "Centering an MDIChild Window Within an MDIFrame" and the related "Centering a Window on Your Desktop"

http://www.revelation.com/knowledge.nsf/5f13dfa1e5319ec6852566f50065bc74/165dd05ab54b8269852565a9004cdac2?OpenDocument

http://www.revelation.com/knowledge.nsf/5f13dfa1e5319ec6852566f50065bc74/f440b19fa194ccd1852565a9004d1dd5?OpenDocument

You can adapt the algorithm to align in the upper left corner.


At 02 MAY 2006 12:25PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

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…

The Sprezzatura Group

World leaders in all things RevSoft

View this thread on the forum...