tags:

views:

70

answers:

2

I have a MDIForm with a MenuBar and a StatusBar. When I create a childform and position it with "Align = alBottom" the form goes out off the screen area and mainform scrollbars are activated. How to position the childform just over the StatusBar?

A: 

Align and Anchors do not really work as expected for a Control that has no Parent responsible for displaying it.
That is what happens to your ChildForm: its Parent is nil.
Besides, for ChildForms it's more usual to follow the normal Windows management (maximize, minimize, cascade, tile...)
If you want to position it some particular place, your best bet is to calculate where to place it using the MainForm's ClientHeight and ClientWidth.

François
A: 

Try docking it.

//... after creating DlgChildForm

DlgChildForm.ManualDock(MainForm, nil, alBottom);
DlgChildForm.Visible := True;
Trinidad