Ver Mensaje Individual
  #3  
Antiguo 05-10-2005
OzzyzzO OzzyzzO is offline
Miembro
 
Registrado: may 2003
Ubicación: Argentina
Posts: 12
Reputación: 0
OzzyzzO Va por buen camino
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.
__________________
Juan Pablo
Responder Con Cita