//Form's Create(Form適應其它分辨率)
procedure SetFormCreate(Sender: TForm);
begin
with Sender do
begin
Width := FrmMain.myClientWidth;
Height := FrmMain.myClientHeight;
Top := (FrmMain.myClientHeight - Height) div 2;
Left := (FrmMain.myClientWidth - Width) div 2;
Scaled := True;
if (Screen.Width <> OrignWidth) then
begin
Height := LongInt(Height) * LongInt(Screen.Height) div OrignHeight;
Width := LongInt(Width) * LongInt(Screen.Width) div OrignWidth;
ScaleBy(Screen.Width, OrignWidth);
end;
end;
end;