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

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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur 基本的な設定 dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!