Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Tool Palette    [ Add a report in this area ]  
Report #:  78135   Status: Closed
Invoking Visual Form Inheritance from Tool Palette raises Error
Project:  Delphi Build #:  14.0.3513.24210
Version:    14.0 Submitted By:   Erwin Mouthaan
Report Type:  Minor failure / Design problem Date Reported:  9/27/2009 12:37:35 PM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   273172
Resolution: Duplicate (Resolution Comments) Resolved in Build: :
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
In your project you have a form where you have changed the default name. Based on this form you want to create a new form through Visual Form Inheritance.

To use VFI go to the Tool Pallete, select the 'Delphi Projects | Inheritable Items' category.

You will not find the form you are looking for. You will find the form with the default name instead.

Double click on it raises error: Error Creating form: Ancestor for 'TForm1' not found.

Related to QC 32042 and QC 67256.
Steps to Reproduce:
Select 'File | New | VCL Forms Application - Delphi'.

Change Name property of Form1 to frmBase.

Press F12 to activate the Code Editor.

On the Tool Pallete, select the 'Delphi Projects | Inheritable Items' category.

exp: frmBase
act: Form1

Double click on Form1 item raises error: Error Creating form: Ancestor for 'TForm1' not found.

Unit2.pas is added to project with undeclared identifier TForm1 instead of TfrmBase.
Workarounds
None
Attachment
None
Comments

Tomohiro Takahashi at 9/27/2009 8:52:59 PM -
When you change Name property of a Form, one possible workaround is
- save the project
- close and reopen the project
to refresh the tool palette item.

Erwin Mouthaan at 9/29/2009 4:23:55 AM -
If you know the issue then save, close and reopen the project is certainly a workaround. Rather cumbersome but it works. Or choose 'File | New | Other' to display the New Items dialog, and select 'Delphi Projects | Inheritable Items' to find there a frmBase item listed. The point is it is not there on the Tool Palette in the 'Delphi Projects | Inheritable Items' category. And it should be there.

Server Response from: ETNACODE01