Properties of type "interface" in the object inspector does not work
Original Reporter info from Mantis: stalker
-
Reporter name: Vyacheslav Bondarev
Original Reporter info from Mantis: stalker
- Reporter name: Vyacheslav Bondarev
Description:
Lazarus's object inspector does not show published properties of type interface.
For example, I create package with such content:
Code: [Select]
Unit example;
interface
type
ITestInterface = interface
{ some functions and procedures }
....
end;
TFirstClass = class(TComponent)
private
fTestIntf : ITestInterface;
published
property TestInterface : ITestInterface read fTestIntf write fTestIntf;
end;
TSecondClass = class(TComponent, ITestInterface)
private
{ TSecondClass specific stuff }
protected
{ implementing ITestInterface}
public
{ TSecondClass specific stuff }
published
{ TSecondClass specific stuff }
end;
procedure Register;
implementation
{ Implementation of the package. }
end.
Then, I install this package.
I have two components TFirstClass and TSecondClass installed.
In Delphi I can simply put both components on the TForm and assign TFirstClass.TestInterface to the TSecondClass
instance in the object inspector.
But not in the Lazarus: property TestInterface is not displayed.
Even if I will open *.lfm code and add
Code: [Select]
TestInterface = TSecondClass1
it does not work.
I get error: "illegal type id 14"