Log On
Embarcadero Home
Watch, Follow, &
Connect with Us
Share This
QualityCentral
Communities
Articles
Blogs
Resources
Downloads
Help
QualityCentral
Delphi-BCB
IDE
Add Component Template
Background compile
Batch file target
Block Completion
Build Tools
Caliber
Class Completion
Class Explorer
Code Browsing
Code Completion
Code Editor
Code Explorer
Code Parameters
Code Templates
Compiler Message Window
Deployment Manager
Dialogs
Direct
Docking
File Browser
File Handling
Form Designer
Help
History View
IDE Insight
Memory Issues
Menu Designer
Menus
Module Manager
Multi-Monitor Support
Object Inspector
Object TreeView
Open Tools API
Packages
Performance
Printing
Project Explorer(old Object Browser)
Project Management
Refactoring
Repository
Save Desktop
Search
Start Page
Starteam
Startup/Shutdown
Structure Pane
System Resources
ToDoList
Tool Palette
Toolbars/Status Line
Translation Tools
Unit Testing
Version Control
VersionInfo
Views
Visual Form Inheritance
Workgroup(PVCS)
You are not logged in.
Help
Print
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.
View Your Reports
Search
Server Response from: ETNACODE01
Developer Tools
Blackfish SQL
C++Builder
Delphi
FireMonkey
Prism
InterBase
JBuilder
J Optimizer
HTML5 Builder
3rdRail & TurboRuby
Database Tools
Change Manager
DBArtisan
DB Optimizer
ER/Studio
Performance Center
Rapid SQL
Technical Articles
Tutorials
White Papers
Press Releases
Newsletters
Add Content (GetPublished)
Audio
Audio & Video
Video
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Tags
Technology Partners
Downloads
Free Trials
Registered User Downloads
Beta Programs
Add Content (GetPublished)
Articles
Blogs
Bugs & Suggestions (QualityCentral)
Discussion Forums
Examples (CodeCentral)
Member Services
About
Connect with Us