In App Designer, a space after each word in TextArea creates a new line after running the gui
조회 수: 20 (최근 30일)
이전 댓글 표시
When running the .mlapp code for any given TextArea, there is a new line created after each space. Even in the Label portion. I can see the issue in the gray area (the none editable portion) of the Code View. The work-around is to remove the text in the property browser and add it under a StartUp function.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1459392/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1459397/image.png)
댓글 수: 1
Ingo Hermann
2024년 4월 10일
I have exactly the same problem for my existing apps. Can I automatically change this back for all labels ?
답변 (1개)
vikash
2024년 8월 2일 12:51
편집: vikash
2024년 8월 2일 12:52
Hi Thuan,
I see that on entering text in the ‘value’ or ‘title’ field of the ‘Text Area’ component in ‘App Designer’, there is a newline created for every space entered.
I tried replicating the same in R2023a but could not find the behaviour being repeated. Attaching a screenshot for the MATLAB App and code view.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1745506/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1745511/image.png)
I suggest you update MATLAB to the latest version or share the exact reproduction steps.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!