How to get multi-line text in GUI edit text ?
8 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Jan
2018-5-2
编辑:Jan
2018-5-2
To convert the GUI element from a "single line edit control" to a "multi-line edit control", set "Max-Min>1", see doc uicontrol (link):
set(handles.edit7, 'Min', 0, 'Max', 2);
Or apply the corresponding changes in GUIDE.
By the way, I really do like this forum, but let me mention that you get a sufficient answer even faster, if you ask an internet search engine for "Matlab multi-line edit control". Searching at first is frequently more efficient than posting a question and waiting for somebody to write an answer.
1 个评论
Mike D.
2020-4-19
This puts a vertical scroll bar on the edit control box, but what if I also wanted a horizontal scroll bar and allow the text to extend beyond the width of the edit box?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!