Rotate Label on App Designer
60 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I've added a label component to my app in App Designer and want to rotate the textbox 90° so the text can be read vertically. I've tried using different methods to rotate text in other cases, e.g.:
set(app.Label,'Rotation',90)
app.Label.Rotate = 90
But keep receiving the error
There is no Rotation property on the Label class
Does anyone have any suggestions?
3 件のコメント
Jenny Read
2019 年 12 月 20 日
Having vertical text labels is really quite basic functionality - surely these needs to be added as a matter of urgency?
Cathie Kessler
2021 年 1 月 14 日
Total hack, and not applicable, if you want to change the text or any other properties: make an image of your rotated text, and insert as an image.
回答 (2 件)
Kanishk Singhal
2023 年 7 月 6 日
There is a FEX submission which can be help.
You can change the button to simple text, by changing property in uicontrol.
0 件のコメント
Hardik
2024 年 3 月 5 日
there is no any rotation proprty but you can split text and put it into label so it will look like vertical.
lbl=uilabel(app.GridLayout);
lbl.Layout.Row=9;
lbl.Layout.Column=2;
text="Vertical comment";
newstring=split(text,'');
lbl.Text=newstring;
lbl.HorizontalAlignment='center';
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!