Can I create multiple MDI forms in a delphi application?

I developed the mdi application, which in its main form has several child windows created at runtime. Windows for children are custom shapes. I want to display these custom forms in another form from the same application. Is it possible?

+6
forms delphi mdichild
source share
2 answers

No, this is not possible using standard VCL. An MDI moment can only be a MainForm application. But this should be possible using win32 directly, as shown here .

+8
source share

I do not think this is possible in VCL. As I understand it, the MDI form is considered the main form (Application.MainForm). I assume that Windows routines will not have this assumption, but I think VCL will not let you do this without a serious hack.

At various points in the VCL environment, important MDI messages are sent to Application.MainForm.ClientHandle . Now ClientHandle is an MDI container, but for some reason the container for the main form is allocated.

0
source share

All Articles