声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3200|回复: 5

[GUI界面] GUI 编辑框多行显示的问题

[复制链接]
发表于 2006-12-1 15:34 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
想用编辑框 显示结果
想多行显示
不知道怎样让输出的结果换行?
有高手知道吗


[ 本帖最后由 eight 于 2007-4-16 14:29 编辑 ]
回复
分享到:

使用道具 举报

发表于 2006-12-1 22:38 | 显示全部楼层
想多行显示
使用list 控件

评分

1

查看全部评分

发表于 2006-12-1 23:44 | 显示全部楼层
max属性改成2

评分

1

查看全部评分

发表于 2007-1-15 13:35 | 显示全部楼层
原帖由 huipz30 于 2006-12-1 15:34 发表
想用编辑框 显示结果
想多行显示
不知道怎样让输出的结果换行?
有高手知道吗


Editable text - If Max - Min > 1, then editable text boxes accept multiline input. If Max - Min <= 1, then editable text boxes accept only single line input.

For multiple line editable text or static text controls, line breaks occur between each row of the string matrix, and each cell of a cell array of strings. Vertical slash ('|') characters and \n characters are not interpreted as line breaks, and instead show up in the text displayed in the uicontrol.
发表于 2007-1-17 10:52 | 显示全部楼层
h=uicontrol(gcf,'Style','edit',...        %制作可编辑文本框
   'position',[0.1,0.8,0.26,0.08],...
   'Max',2);                                  %max取2,使Max-Min>1,而允许多行输入

评分

1

查看全部评分

发表于 2010-3-14 13:42 | 显示全部楼层
各位高人那,怎么解决呀?还是没明白呀!!!
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-6-26 06:33 , Processed in 0.060984 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表