Local events are not created in unit when using inherited forms
Original Reporter info from Mantis: mangakissa
-
Reporter name: John Kuiper
Original Reporter info from Mantis: mangakissa
- Reporter name: John Kuiper
Description:
I'm creating a form (TInform) from a baseform (TBaseForm). The baseform has two events created (FormCreate and FormClose). When the inherited form is created the link of the baseform events is put in the objectinspector as TBaseform.formcreate and TBaseform.Formclose. Now I want to use de Oncreate event of TInform. When dubbleclick on the event Oncreate in the objectinspector, TBaseform.formcreate will change to formcreate. That's normal behavior. But dubbleclick on the event again causes this error
Unable to show method. Please fix the error shown in the message window, which is normally below the source editor.
The errormessage is logical. When dubbleclick on the event the following should be created:
procedure TInForm.Formcreate(sender : TObject);
begin
inherited;
end;
But there's nothing. I have to create the procedure in interface an implementation manually
Steps to reproduce:
create a form with a Formcreate event. Create a new form by option 'inherited project component' and select the first created form. Dubbleclick in objectinspector by event Oncreate. do it again.
Additional information:
Similar behavior when an actionlist with actions is created in the baseform.
When you want to create a different code in the event Execute the procedure will not created in the editor.
Mantis conversion info:
- Mantis ID: 30845
- OS: Windows
- OS Build: N/A
- Platform: Windows
- Version: 1.6
- Fixed in revision: 55240 (#b2679b7d)
- Monitored by: » rvk (Rik van Kekem)