Ok, I am going to steer this a little in a different direction..
I have found that lazarus (object inspector) does not prepend the names of the Frame instance
so that a unique eventname is created for a child control inside a frame.
Lets look at this example here..
TMyFrame = Class(Tframe)
Panel:TPanel;
End;
And now the host form..
Form1 = Class(Tform)
Panel :TPanel;
AFrame :TmyFrame;
End;
Now try to assign a unique OnClick handler for form1.Panel and one for Form1.AFrame.Panel
using the OI "Object inspector"
The OI gives you PanelClick for Form1.Panel
The OI also gives you PanelClick for the AFrame.Panel when doing this from the FORM1
so what the OI does is simply points to the first PanelClick created instead of making a unique one
Aframe.PanelClick
This is a problem because if I have several of these frames the OI does not prepend "Aframe" or what
ever the instance name is.
I can create this manually in the form1 class and then direct the OI to use it, but shouldn't the OI
be able to do this?
Online search tells me that Delphi does this..
Aframe.PanelClick
and if Panel has a child on it..
AFrame.Panel.AchildNameClick
isn't this how it should be done ?