Verticalalignment for edit text GUI

6 views (last 30 days)
darissa
darissa on 16 Jan 2015
Is there verticalalignment option in uicontrol? I need to make the text centre in the edit text box.

Answers (1)

Zoltán Csáti
Zoltán Csáti on 16 Jan 2015
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 Comments
darissa
darissa on 19 Jan 2015
Thank you for prompt reply.
Margareta Drozdikova
Margareta Drozdikova on 11 Apr 2018
Hi, I have the same problem, but I need verticalalignment in text object. How can I do it? thanks

Sign in to comment.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!