How to use multible lines in Edit Field with App Designer
조회 수: 49 (최근 30일)
이전 댓글 표시
Hello,
I'm building a GUI with App Designer (MATLAB R2020b) and want to use a Edit Field (Text) with multiple lines (input and output).
When I fill the value of the edit field with a string with \n in it nothing happens.
For example:
text = [test1 \t test2 \n test3 \t test4];
string=sprintf(text)
app.EditField.value=string;
In the edit field is now displayed: test1 test2test3 test4.
I found solutions for this problem but only for GUIDE with uicontrol but this function only works with apps created using the figure function or with GUIDE.
Text Area is not an option because I want to use the same field for input and output.
Thanks for your help!
댓글 수: 0
채택된 답변
추가 답변 (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!