Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Positioning of forms in Mdi application

Posted on 2004-10-27
Medium Priority
Last Modified: 2010-04-05
Every time a form is created it is positioned lower and to the right of the form below, this is the desired functionality, however if a previous form is closed prior to opening the new form the new form still moves down the screen.

Can this behaviour be changed so that the new form is positioned at the highest position that will show the title bars of the windows underneath it.

Using Delphi 7 and Windows XP

Hope the above explanation is clear.

Thanks in anticipation.

Question by:alanjbrown
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 17

Accepted Solution

geobul earned 500 total points
ID: 12421863

Perhaps calling MainForm.Cascade after showing a new form (or in its OnShow event) will do what you want.

Regards, Geo

Author Comment

ID: 12422222
Hi Geo,

That appears to do the job, thanks very much for the rapid response.


LVL 17

Expert Comment

ID: 12422485
The pleasure was mine :-) I don't have much experience with MDI and I wasn't sure if it would work.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question