Ante todo gracias por responder.
Los componentes que están dentro del componente (el TImage, el TStaticText, etc) los creo en el medo AfterConstruction de mi componente:
Código Delphi
[-]
procedure TDigitalDisplay.AfterConstruction;
var
MenuItem: TMenuItem;
begin
StaticText1 := TStaticText.Create(self);
StaticText2 := TStaticText.Create(self);
StaticText3 := TStaticText.Create(self);
Image1 := TImage.Create(self);
PopupMenu1 := TPopupMenu.Create(self);
MenuItem := TMenuItem.Create(PopupMenu1);
with MenuItem do
begin
Caption := 'Configurar';
OnClick := PopupConfigurar;
end;
inherited AfterConstruction;
end;
En cuanto al dfm, si, el IDE lo lee sin problemas. Un dato más: a las funciones para guardar y leer las llamo desde los eventos OnClose y OnCreate del form respectivamente, aunque también probé de llamarlas mediante un botón y tampoco funcionó. Además, el metodo write funciona, pero el Read es el que da el error.
Saludos.