how to wrap text in appdesigner?
20 ビュー (過去 30 日間)
古いコメントを表示
if strcmp(t.System{n},"MIM-23A HAWK")
cla(app.UIAxes)
imshow("MIM_23A_HAWK.jpg","Parent",app.UIAxes)
uilabel(app.UIFigure,"Text","Raytheon tarafından geliştirilen sistem, orta menzil hava savunma sistemlerinin en etkililerindendir. Orta menzil hava savunma sistemi olmasına rağmen alçak irtifa hedefleri için uyarlanmıştır. Açık adı 'Homing Allthe way to Kill' dir. Standart lançerinden üç füze taşımaktadır. Improved (Geliştirilmiş)-HAWK`ın motor perfomansı artırılmış, elektronik harbe karşı korunması da en üst düzeye çıkarılmıştır. Azami menzil 35 km ve azami irtifası ise 18 km`dir.","Position",[531 17 368 279],"Visible","on")
textwrap(app.Label,app.Label.Text,20)
end
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/995025/image.jpeg)
I have a text in label but it is too long, it does not show fully in label area. I tried to use textwrap command but it does not work. How can I do it? Thank you.
3 件のコメント
採用された回答
その他の回答 (1 件)
Dwobble
2023 年 3 月 9 日
Here's a simple solution. Change "Label" below to match the component name of the label you wish to wrap text in App Designer Code View.
app.Label.WordWrap = 'on';
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!