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
  • 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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…

593 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