Fredrik Larsson wrote:

> Since I am a curious person I tried to do it. A D5-application allow me to
> create two MDIForms. But the children always go to the mainform if it's an
> MDIForm otherwise it raises "cannot create, no mdiforms active" message.
> 
> What you are referring to is creating own MDI-handling or some 3rd party
> component?

Seems I should have tested this before replying.

AFAIK from the Windows API perspective there's no requirement for 
an MDI Mainform to be a Windows application's Main Form.

However, there ARE assumptions in the VCL that any MDI form is 
the Application.MainForm.
(Look in TCustomForm.CreateWindowHandle).

Since CreateWindowHandle is virtual, it should be possible to 
create a descendant that avoids those assumptions; but I don't 
have the time/resources at the moment to dig into this much 
further, I fear.

Stephen Posey
[EMAIL PROTECTED]

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to