Solved

Positioning of forms in Mdi application

Posted on 2004-10-27
178 Views
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.

Alan
0
Question by:alanjbrown
    3 Comments
     
    LVL 17

    Accepted Solution

    by:
    Hi,

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

    Regards, Geo
    0
     
    LVL 1

    Author Comment

    by:alanjbrown
    Hi Geo,

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


    Regards

    Alan
    0
     
    LVL 17

    Expert Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    875 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now