Visual Form Inheritance: Problem when change component parent in subclass form
Original Reporter info from Mantis: bpranoto
-
Reporter name: Bambang Pranoto
Original Reporter info from Mantis: bpranoto
- Reporter name: Bambang Pranoto
Description:
In subclassed form if we change parent of a component inherited from the parent class, the form will fail to be loaded
Steps to reproduce:
-
Create a form TForm1 with a button Button1. Save the form.
-
Create a new form inherited from TForm1, save and close the new form then reopen the form. If you do not close and reopen you will not see the button in subclassed form (TForm11).
-
Place a panel in TForm11
-
Right click the Button in TForm11
-
Change Parent to Panel1
-
Now close and save the subclassed form.
-
Reopen the subclassed form.
-
An Read Error popped up:
Stream=TForm11:Root=:TForm11
Component Class=TButton
Duplicate name: A component named "Button1" already exists
Stream position=221
see the screenshot in attachment
Mantis conversion info:
- Mantis ID: 29986
- OS: Ubuntu
- OS Build: 12.04
- Platform: Linux
- Version: 1.6
- Monitored by: » a.ramos (a.ramos), » bpranoto (Bambang Pranoto)