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!