constructor TAlignEdit.Create(Aowner: TComponent); begin
inherited Create(AOwner);
FAlign := eaLeft; end;
procedure TAlignEdit.SetAlign(const Value: TAlign); begin
if FAlign <> Value then
begin FAlign := Value;
RecreateWnd; end; end;
procedure TAlignEdit.CreateParams(var Params: TCreateParams); begin
inherited; case FAlign of eaLeft: Params.Style := Params.Style or ES_LEFT;
eaCenter: Params.Style := Params.Style or ES_CENTER;
eaRight: Params.Style := Params.Style or ES_RIGHT; end; end;
procedure Register; begin RegisterComponents('SwissDelphiCenter', [TAlignEdit]); end;