[DUG] Using mdi forms in dunit test

2007-05-20 Thread Sean Cross
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 have also tried creating an inherited child form with a formstyle of fsnormal but that

Re: [DUG] Using mdi forms in dunit test

2007-05-20 Thread Todd Martin
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

RE: [DUG] Using mdi forms in dunit test

2007-05-20 Thread Sean Cross
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

RE: [DUG] Using mdi forms in dunit test

2007-05-20 Thread karlreynolds
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