When I define an EventHandler for the OnCreate event of a (derived) TWebFrame, the frame raises an exception because it cannot find the OnCreate property.
Please repair
What is an alternative way to set some parameter defaults?
The next method raises the exception:
function FindPropInfo(Instance: TObject; const PropName: String
): TTypeMemberProperty;
begin
Result:=GetPropInfo(TypeInfo(Instance), PropName);
if Result=nil then
raise EPropertyError.CreateFmt(SErrPropertyNotFound, [PropName]);
end;
Attached a file that shows the bug. I have a TFBasis derived from TWebFrame and a TFBasisLijst derived from TFBasis. In TFBasisLijst the property OnCreate is exposed (which apparently is incorrect) in the ObjectInspector.
Thank you again. This solved the issue. And that on a Sunday! You must like your job very much. I have no idea where this error originated from, but somewhere apparently I did something wrong.