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 |
| Exists | Exists | Exists | Exists | Exists | Exists | Exists | Exists | Exists | Exists | Exists | Exists | Exists | Exists | N/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.
|
|