Positioning of forms in Mdi application

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
LVL 1
alanjbrownAsked:
Who is Participating?
 
geobulCommented:
Hi,

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

Regards, Geo
0
 
alanjbrownAuthor Commented:
Hi Geo,

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


Regards

Alan
0
 
geobulCommented:
The pleasure was mine :-) I don't have much experience with MDI and I wasn't sure if it would work.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.