procedure AdjustResolution(oForm:TForm);variPercentage:integer;beginif Screen.Width > 640 then begin iPercentage:=Round(((Screen.Width-640)/640)*100)+100; oForm.ScaleBy(iPercentage,100); end;end;//call it like soAdjustResolution(Self);