I reported that long ago..
you did not specify which release of Lazarus you are using ?
There is a 2.0 CR3 currently being tested that you can download and check to see if that was corrected.
The problem is the Object inspector does not Prepend the Instance Name of the Frame item when making
events. If you have multiples of the same TFrame instance on the form, all events generated uses the same
target, which is what you are seeing.
You can fix this in your code however:
Go to the EVENT property for EDIT2, you will see you have "EDIT1OnClick"
Overtype that with "Frame2Edit1OnClick" and the OI should generate a new code block.
They claimed before their copy of Delphi did the same, but obviously it does not because the proof is
here.