Verticalalignment for edit text GUI

Is there verticalalignment option in uicontrol? I need to make the text centre in the edit text box.

回答 (1 件)

Zoltán Csáti
Zoltán Csáti 2015 年 1 月 16 日

0 投票

Unfortunately there is no such property for uicontrols just for text objects. However, if you are proficient in Java, you can solve it. An other workaround is the following: create an axes object and within that, create a text object. Then make the axis invisible. Although, it is quite cumbersome.

2 件のコメント

darissa
darissa 2015 年 1 月 19 日
Thank you for prompt reply.
Margareta Drozdikova
Margareta Drozdikova 2018 年 4 月 11 日
Hi, I have the same problem, but I need verticalalignment in text object. How can I do it? thanks

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2015 年 1 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by