[DUG] D2007 - Property TextHeight does not exist.

2007-05-20 Thread Sean Cross
I have a D7 project that I have upgraded to D2007. When I run it, it gives the following error: --- Application Error --- Exception EReadError in module PPrint4.exe at 00460737. Error reading frmBase.TextHeight: Property TextHeight does not exist.

RE: [DUG] D2007 - Property TextHeight does not exist.

2007-05-20 Thread Stacey Verner
Could be something to do with your uses clause. Whatever class is supposed to have these properties may be declared twice (different version, or completely different classes with the same name) in different units, and in this case it is using the wrong one and therefore stuffing up. Stacey

RE: [DUG] D2007 - Property TextHeight does not exist.

2007-05-20 Thread Sean Cross
The class's descend from TForm, and they are TForm properties. 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

Re: [DUG] D2007 - Property TextHeight does not exist.

2007-05-20 Thread Edward Koryagin
This happened to me when I had Quick Report without the form. Create new Form, select all in old form and paste on new form. Change calls. --- Sean Cross [EMAIL PROTECTED] wrote: I have a D7 project that I have upgraded to D2007. When I run it, it gives the following error:

RE: [DUG] D2007 - Property TextHeight does not exist.

2007-05-20 Thread Sean Cross
I will give that a try. However I am getting the error showing up on an empty form with no changes. 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/

[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
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

RE: [DUG] Using mdi forms in dunit test

2007-05-20 Thread karlreynolds
Interesting. It appears (in D2006 anyway) MDI forms are only supported if the *main form* of the application is an MDI parent form: procedure TCustomForm.CreateWindowHandle(const Params: TCreateParams); var CreateStruct: TMDICreateStruct; NewParams: TCreateParams; begin if (FormStyle =