Did you create a parent MDI form first?
On Mon, 21 May 2007 11:47, Sean Cross wrote:
Has anyone managed to use mdi forms in a unit test? I keep getting the
error Cannot create form. NO MDI forms are currently active.
I have tried creating and showing an mdi form first without any luck. I
you.
-Original Message-
From: [EMAIL PROTECTED] [mailto:delphi-
[EMAIL PROTECTED] On Behalf Of Todd Martin
Sent: Monday, 21 May 2007 2:01 p.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Using mdi forms in dunit test
Did you create a parent MDI form first
Group - DelphiList
Subject: RE: [DUG] Using mdi forms in dunit test
Yes. I am doing this
procedure TestTfrmOrders.SetUp;
begin
...
FmdiParent:= TformMdiParent.Create(Application);
FmdiParent.Show;
Application.ProcessMessages;
FfrmOrders := TfrmOrders.Create(Application);
end;
Regards