How to get multi-line text in GUI edit text ?

조회 수: 21 (최근 30일)
Mohamad
Mohamad 2018년 5월 2일
댓글: Mike D. 2020년 4월 19일
I get this warning on matlab GUI when using edit text Warning: Single line Edit Controls can not have multi-line text So how to get multi-line text in GUI edit text ?

채택된 답변

Jan
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.
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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by