Do not forget that the Component must register in Delphi (preferably in the Time Time Package), or you will not see anything in the Object Inspector !!!
I mean ... I can create a new TPanel descendant called TMyPanel and add a new publishing property to it:
type TPanel1 = class(TPanel) private FMyName: String; { Private declarations } protected { Protected declarations } public { Public declarations } published { Published declarations } property MyName : String read FMyName write FMyName; end;
but this property will not be displayed in the Object Inspector if you have not registered a new class using RegisterComponent:
procedure Register; begin RegisterComponents('Samples', [TPanel1]); end;
Just to be complete :-)
source share