Is it possible to change the width and alignment of text within the initial column of a table in a GUI, using GUIDE or inside the code itself?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am designing a table for use in a GUI, and I would like to change the width of the column circled in blue in the attached image. So far, I can only change it by changing the length of the text inside the boxes themselves. When I do that, it also centers the text within the column, leaving a lot of space on either side. Is it possible to re-align the text in this initial column with, say, the left side of the table? Also, is it possible more generally to change the width of that column regardless of how long the text in the boxes is?
댓글 수: 2
mbonus
2016년 9월 13일
I don't know if you can do this in GUIDE, but if you programmatically create your GUI using uicontrol, you can format it using HTML.
채택된 답변
Walter Roberson
2016년 9월 13일
If you make the cells for uipanel into strings, then they can be in HTML 3. For more information see https://www.mathworks.com/matlabcentral/answers/244201-how-to-locate-the-data-in-the-middle-of-the-column-uitable and http://undocumentedmatlab.com/blog/uitable-cell-colors/
추가 답변 (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!