Ahhhhhh que pasoooooooooo !!! con el fragmento de codigo
Código Delphi
[-]
unit CajaTexto;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ExtCtrls;
type
TCajaTexto = class(TEdit)
private
protected
procedure DoEnter; override;
procedure DoExit; override;
procedure DoKeyPress; override;
public
published
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Mis Componentes', [TCajaTexto]);
end;
procedure TCajaTexto.DoEnter;
begin
inherited;
Color:=clInfoBk;
end;
procedure TCajaTexto.DoExit;
begin
inherited;
Color:=clWindow;
end;
procedure TCajaTexto.DoKeyPress;
begin
inherited;
if Key = #13 then
begin
Key := #0;
Perform(WM_NEXTDLGCTL,0,0);
end
end;
end.