S
szdnc
Unregistered / Unconfirmed
GUEST, unregistred user!
为什么会显示乱码?
procedure TForm1.Button2Click(Sender: TObject);
var
Px,Py:Integer;
i,j:Integer;
Text_Spacing:Integer;
Txt:String;
begin
px:=100;
py:=100;
j:=0;
Text_Spacing:=12;
Txt:='中华人民共和国';
for i:=1 to Length(Txt) do
begin
Canvas.TextOut(Px+j, Py, Txt);
j:=j+Text_Spacing;
end;
end;
procedure TForm1.Button2Click(Sender: TObject);
var
Px,Py:Integer;
i,j:Integer;
Text_Spacing:Integer;
Txt:String;
begin
px:=100;
py:=100;
j:=0;
Text_Spacing:=12;
Txt:='中华人民共和国';
for i:=1 to Length(Txt) do
begin
Canvas.TextOut(Px+j, Py, Txt);
j:=j+Text_Spacing;
end;
end;