プッシュボタン上のテ​キストを複数行にして​表示することはできま​すか?

5 views (last 30 days)
MathWorks Support Team
MathWorks Support Team on 16 Sep 2009
プッシュボタンに表示されるテキストを複数行にして表示させる方法を教えてください。
以下のように、テキストに改行を含ませても、1行のみの表示になってしまいます。
uicontrol('String',sprintf('%s\n%s','Chose','color'))

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 19 Apr 2021
Edited: MathWorks Support Team on 19 Apr 2021
現状、できません。
なお、以下の MATLAB Central のサイトでは、プッシュボタンの表示に関するプログラムが公開されています。
・MATLAB CENTRAL : createButtonLabel
※ただし、MathWorks テクニカルサポート窓口では、上記サイトに関する内容に関してはサポートすることができませんので、予めご了承ください。

More Answers (0)

Categories

Find more on 基本的な設定 in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!