procedure TForm1.Button1Click(Sender: TObject);
begin
  Caption := Format('%10s', [Edit1.Text]);
//                    ~~字符宽度
end;