Ver Mensaje Individual
  #3  
Antiguo 09-09-2005
Avatar de DarkDrakon
DarkDrakon DarkDrakon is offline
Miembro
 
Registrado: abr 2005
Ubicación: Tacna - Peru
Posts: 46
Reputación: 0
DarkDrakon Va por buen camino
Talking Aki te va

No crees ke seria mas sencillo solo al crear tu nuevo componente, ke herede no del componente TCustomControl, sino directamente del componente TEdit.

Código:
 unit NewComp; 
 
interface
 
uses
Classes, ....; 
 
type
TNewComp = class(TEdit)
private
{...}
Asi el constructor solo seria ::

Código:
 constructor TNewComp.Create(AOwner : TComponent); 
begin
inherited Create(AOwner); {Llama al constructor original (heredado)}
{...}
end;
Eso es todo lo ke yo haria
__________________
Dark Drakon::


"Ego sum Draco dormiens ... Aut insanit Draco, aut Versus facit..."


Última edición por DarkDrakon fecha: 09-09-2005 a las 01:05:28.
Responder Con Cita