
How do I make ListBox items wrap?
6 ビュー (過去 30 日間)
古いコメントを表示
I am using app designer and still getting familiar with it. I want each of the individual items to be wrapped text instead of a scroll bar. Is there any way to do this? Thank you!
0 件のコメント
回答 (1 件)
chicken vector
2023 年 4 月 22 日
In general, for uicontrol components you would use textwrap, but it doesn't work in App Designer.
Some of them, such as uibutton, have a property named WordWrap that you can set to 'on', but, to my knowledge, you can't do it with with uilistbox.
lbox = uilistbox('Items', {['This is a' newline 'long list name'], ...
'Short one', ...
'Short two', ...
'Short three'}, ...
'Position', [125 120 100 78]);
Result:

0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!