Same:
MainForm.Width := 127;
MainForm.Height := 263;
Or maybe you want to customize the client area to these sizes:
MainForm.ClientWidth := 127;
MainForm.ClientHeight := 263;
Of course, you most often set these properties in the object inspector during development, and then write to the form's .dfm file.
If you want this change to occur on the button, click add a handler to click the button, which looks like this:
procedure TMainForm.Button1Click(Sender: TObject);
begin
Width := 127;
Height := 263;
end;
MainForm, TMainForm, Self .
(. ) SetBounds, :
SetBounds(Left, Top, 127, 263);
, Scaled = True, . , , , .