Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Coloboración Paypal con ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #2  
Antiguo 25-01-2006
Avatar de Neftali [Germán.Estévez]
Neftali [Germán.Estévez] Neftali [Germán.Estévez] is offline
[becario]
 
Registrado: jul 2004
Ubicación: Barcelona - España
Posts: 19.437
Poder: 10
Neftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en brutoNeftali [Germán.Estévez] Es un diamante en bruto
Antes de seguir por ahí, yo revisaría la ayuda y documentación sobre Frames.
De todas formas si quiere hacer pruebas, haz lo siguiente:

Para la definición de la clase:
Código Delphi [-]
  TEditHours = class(TPanel)
  private
    FEdit1: TEdit;
    FEdit2: TEdit;
    FLabel1: TLabel;
  public
    constructor Create(AOwner: TComponent); override;
    destructor Destroy; override;
  published
    property Edit1:TEdit read FEdit1 write FEdit1;
    property Edit2:TEdit read FEdit2 write FEdit2;
    property Label1:TLabel read FLabel1 write FLabel1;
  end;

El Create:

Código Delphi [-]
constructor TEditHours.Create(AOwner: TComponent);
begin

  inherited;

  Self.Height := 23;
  Self.Width := 200;
  Self.Caption := '';

  FLabel1 := TLabel.Create(Self);
  FLabel1.Parent := Self;
  FLabel1.Top := 5;
  FLabel1.Left := 3;
  FLabel1.Width := 20;
  FLabel1.Caption := 'Hora: ';

  FEdit1 := TEdit.Create(Self);
  FEdit1.Parent := Self;
  FEdit1.Top := 1;
  FEdit1.Left := 30;
  FEdit1.Width := 75;

  FEdit2 := TEdit.Create(Self);
  FEdit2.Parent := Self;
  FEdit2.Top := 1;
  FEdit2.Left := 110;
  FEdit2.Width := 75;
end;

Y el Free:

Código Delphi [-]
destructor TEditHours.Destroy;
begin

  FLabel1.Free;
  FEdit1.Free;
  FEdit2.Free;

  inherited;
end;

Funciona en diseño y en ejecución. Y puedes añadir más componentes de forma similar.
__________________
Germán Estévez => Web/Blog
Guía de estilo, Guía alternativa
Utiliza TAG's en tus mensajes.
Contactar con el Clubdelphi

P.D: Más tiempo dedicado a la pregunta=Mejores respuestas.
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
Problema creando un nuevo componente y un editor de propiedades Koder OOP 8 21-08-2005 10:59:08
Creando un componente unko! OOP 4 30-03-2005 20:10:48
Componente para soporte Multilenguage en Delphi 2005 Holderhek OOP 2 16-03-2005 15:46:00
creando componente Descendents OOP 23 16-01-2004 14:30:43
creando componente con Tdataset Descendents OOP 4 12-01-2004 21:39:04


La franja horaria es GMT +2. Ahora son las 20:13:31.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi