scaled := true;
if (screen.width <> ScreenWidth) then
begin
height := longint(height) * longint(screen.height) div ScreenHeight;
width := longint(width) * longint(screen.width) div ScreenWidth;
scaleBy(screen.width, ScreenWidth);
end;
if screen.width=1024 then
begin
for k := ControlCount - 1 downto 0 do
begin
TFooClass(Controls[i]).Font.Charset:=GB2312_CHARSET;//GB2312_CHARSET;
TFooClass(Controls[i]).Font.Name:='宋体';
TFooClass(Controls[i]).Font.Size:=11;
TFooClass(Controls[i]).Font.Size :=(screen.width div ScreenWidth) *
TFooClass(Controls[i]).Font.Size;