procedure TForm1.FormCreate(Sender: TObject);
begin
self.Scaled :=true; //自动调整控件的字体大小等。
if Screen.Width <>OrignWidth then begin
self.Height :=longint(height)*longint(screen.height) div OrighHeight;
self.Width :=longint(width)*longint(screen.width) div OrignWidth;
Scaleby(Screen.width,OrignWidth);
end;
end;