The Delphi Bug List

Entry No.
652
VCL - MDI
When Scaled is False and WindowState is wsMaximized on an MDI parent form, the MDI client area is positioned incorrectly.
1.02 2.01 3.0 3.01 3.02 4.0 4.01 4.02 4.03 5.0 5.01 6.0 6.01 6.02 Kylix 1.0
ExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsExistsN/A
Description
Reported by Jordan Russell
When Scaled is False and WindowState is wsMaximized on an MDI parent form, the MDI client area is positioned incorrectly. MDI child forms get placed underneath Aligned controls on the MDI parent form. As soon as the MDI parent form is resized, the problem goes away.

This project reproduces the bug. Notice how when the "Create MDI Child" button is clicked, the title bar of the newly created MDI child form is hidden underneath the top panel.

Solution / workaround
One easy workaround is to create an OnShow handler on the MDI parent form:
procedure TForm1.FormShow(Sender: TObject);
begin
  Realign;
end;
Update: Oddly, I've tested this again, and this workaround doesn't seem to have any effect.
Latest update of this entry: 2002-04-18

Post a comment on this bug


Index page
Delphi Bug List home page
The Delphi Bug Lists are presently maintained by Jordan Russell, who has taken over this task from Reinier Sterkenburg since August 2000.
All feedback is appreciated. See also the feedback section of the Delphi Bug List home page.