Ich möchte in einer Komponente im Objekt-Inspektor ein Property mit Unterproperties verschiedender Typen (ähnlich TFont) darstellen. Dazu folgender Code:
type
TMyProp = class(TPersistent)
private
FProp1 : Boolean;
published
property Prop1 : Boolean read FProp1 write FProp1;
end;
TMyEdit = class(TEdit)
private
FMyProp : TMyProp;
published
property MyProp : TMyProp read FMyProp write FMyProp;
end;
Das Property erscheint dann auch, beim anklicken des Plus-Zeichens erscheint aber die Meldung "Keine Expandierung möglich".
Was fehlt noch ?
type
TMyProp = class(TPersistent)
private
FProp1 : Boolean;
published
property Prop1 : Boolean read FProp1 write FProp1;
end;
TMyEdit = class(TEdit)
private
FMyProp : TMyProp;
published
property MyProp : TMyProp read FMyProp write FMyProp;
end;
Das Property erscheint dann auch, beim anklicken des Plus-Zeichens erscheint aber die Meldung "Keine Expandierung möglich".
Was fehlt noch ?
Comment