Label.Caption ;= 'This'+#13+'is'+#13+'a'+#13+'long'+#13+'string';

解决方案 »

  1.   

    用动态赋值
    formCreate里面加
      Label1.Caption:='A'+#13+'b'+#13+....
      

  2.   

    应该说Label是Borland的一个败笔,当他的Caption总长超出他的Width时,怎么做他都不会自动折行显示,设置他的AutoSize、WordWrap都没有用,哪位大虾有更好的解决方法吗?----------------------------------
    风过西窗客渡舟船无觅处
    年年一川新草遥看却似旧
      

  3.   

    WordWrap只对输入汉字时才起作用,对于英文自动换行Label控件是没办法。
      

  4.   

    Label.Caption ;= 'This'+#13+'is'+#13+'a'+#13+'long'+#13+'string';
      

  5.   

    好象在安装完Rxlib之后label就可以换行了。
      

  6.   

    用Chr(13)进行换行。
    =========================[I_am_zealot]=====
      

  7.   

    Label.Caption ;='string1'+#13+#10+'string2';