As of MATLAB 7.1 (R14SP3), push buttons do not support multiline text. This is in line with Windows UI design standards.
The workaround to the problem is to modify the size of the push button in the GUI design to accommodate the longest string that it will hold at any time.
Alternatively, you can use a static-text object to display the information, since static-text objects can be multiline.
댓글 수: 1
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/99152-how-can-i-display-multiline-text-in-a-push-button-by-setting-its-string-property#comment_475849
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/99152-how-can-i-display-multiline-text-in-a-push-button-by-setting-its-string-property#comment_475849
댓글을 달려면 로그인하십시오.