Unable to lookup method in Form2 designer which is actually located in Form1
Original Reporter info from Mantis: dezlov
-
Reporter name: Denis Kozlov
Original Reporter info from Mantis: dezlov
- Reporter name: Denis Kozlov
Description:
The automatic method lookup through IDE does not work when assigning methods located in different forms.
Using the "Steps To Reproduce", the following error dialog is shown:
--------------------------------------------------------------------
[Window Title]
Error in TDefaultComponentEditor
[Content]
The component editor of class "TDefaultComponentEditor" has created the error:
"Unable to show method. Please fix the error shown in the message window, which is normally below the source editor."
[OK]
--------------------------------------------------------------------
The following error is shown in the Messages window:
unit2.pas(1,11) Error: identifier not found: Action1Execute
The expected result would be to locate the appropriate method even if it is located in a different form/unit.
Steps to reproduce:
- Create a new Application project
- Create two forms: Form1 and Form2
- On Form1, drop TActionList component and create Action1
- Create OnExecute handler method for Form1.Action1
- On Form2, drop a button and assign Form1.Action1 action to it.
- Double click on the button to lookup the Form1.Action1.OnExecute method