Edit多行设置,要把Edit的Max和Min属性修改,令Max-Min>2(其实Max表示最多多少行,Min表示最少多少行)。

然后set字符串的时候,用数字"10"作换行符(因为换行符的ASCII码是10)。

代码如下:

str1 = ['第一行', 10];
str2 = ['第二行', 10];
str3 = ['第三行', 10];
str4 = '没有了';
str = [str1, str2, str3, str4];
set(handles.editResult, 'string', str);

 

 原文地址:http://blog.163.com/dal_xxx002/blog/static/162123895201042102311537/

相关文章:

  • 2021-04-27
  • 2021-12-05
  • 2021-11-14
  • 2021-06-18
  • 2021-12-12
  • 2022-12-23
  • 2021-12-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-08-18
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
相关资源
相似解决方案