var
  str,capstr:string;
  i,j:integer;
 
....................
j:=500;   //这个地方可能要根据你显示的宽度来换算对应的字符长度
str:=somestring;
capstr:=''
i:=1
while i<=length(somestring) do
begin
  capstr:=capstr+copy(str,i,j)+#13#10;
  i:=i+j;
end;
 
label1.WordWrap:=true;
label1.AutoSize:=true;
label1.Font.Name:='宋体';
label1.Caption:=capstr;
 
........................

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-24
  • 2021-07-03
  • 2021-06-23
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案