Yes.  I am doing this

procedure TestTfrmOrders.SetUp;
begin
...

  FmdiParent:= TformMdiParent.Create(Application);
  FmdiParent.Show;
  Application.ProcessMessages;

  FfrmOrders := TfrmOrders.Create(Application);
end;


Regards

Sean Cross
IT Systems Development Manager

Catalyst Risk Management
PO Box 230
50 Dalton St
Napier 4140
DDI: 06-8340362
mobile: 021 270 3466
Visit us at http://www.catalystrisk.co.nz/

Offices in Auckland, Napier, Wellington & Christchurch

Disclaimer:
"The information contained in this document is confidential to the addressee(s) 
and may be legally privileged. Any view or opinions expressed are those of the 
author and may not be those of Catalyst Risk Management. No guarantee or 
representation is made that this communication is free of errors, viruses or 
interference. If you have received this e-mail message in error please delete 
it and notify me. Thank 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?
>
> 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
> > have also tried creating an inherited child form with a formstyle of
> > fsnormal but that didn't work either.
> >
> > Any ideas?
> >
> > Regards
> >
> > Sean Cross
> > IT Systems Development Manager
> >
> > Catalyst Risk Management
> > PO Box 230
> > 50 Dalton St
> > Napier 4140
> > DDI: 06-8340362
> > mobile: 021 270 3466
> > Visit us at http://www.catalystrisk.co.nz/
> >
> > Offices in Auckland, Napier, Wellington & Christchurch
> >
> > Disclaimer:
> > "The information contained in this document is confidential to the
> > addressee(s) and may be legally privileged. Any view or opinions
> expressed
> > are those of the author and may not be those of Catalyst Risk
> Management.
> > No guarantee or representation is made that this communication is
> free of
> > errors, viruses or interference. If you have received this e-mail
> message
> > in error please delete it and notify me. Thank you."
> >
> >
> >
> > _______________________________________________
> > NZ Borland Developers Group - Delphi mailing list
> > Post: delphi@delphi.org.nz
> > Admin: http://delphi.org.nz/mailman/listinfo/delphi
> > Unsubscribe: send an email to [EMAIL PROTECTED] with
> Subject:
> > unsubscribe
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: delphi@delphi.org.nz
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to [EMAIL PROTECTED] with
> Subject: unsubscribe

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe

Reply via email to