unit CustomEdit1;interfaceuses SysUtils, Classes, Controls, StdCtrls, Windows;type TCustomEdit1 = class(TCustomEdit) private { Private declarations } protected { Protected declarations } public { Public declarations } procedure CreateWnd; override; published { Published declarations } end;procedure Register;implementationprocedure Register;begin RegisterComponents('test', [TCustomEdit1]);end;{ TCustomEdit1 }procedure TCustomEdit1.CreateWnd;begin inherited; if HandleAllocated then SetWindowLong(Handle, GWL_STYLE, GetWindowLong(Handle, GWL_STYLE) or ES_NUMBER);end;end.