unit REdit;<br><br>interface<br><br>uses<br> Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,<br> StdCtrls;<br><br>type<br> TREdit = class(TEdit)<br> private<br> { Private declarations }<br> protected<br> { Protected declarations }<br> public<br> { Public declarations }<br> procedure CreateParams(var Params: TCreateParams);override;<br> published<br> { Published declarations }<br> end;<br><br>procedure Register;<br><br>implementation<br><br>procedure Register;<br>begin<br> RegisterComponents('Free', [TREdit]);<br>end;<br><br>procedure TREdit.CreateParams(var Params: TCreateParams);<br>begin<br> inherited;<br> Params.Style:=Params.Style or ES_RIGHT;<br>end;<br><br><br>end.