Help me about the Static text og GUIDE ?

7 views (last 30 days)
When I make a static text in GUI, the text not lay at the center of the rectangle (although I have adjusted the HorizontalAlignment PropertyInspector is center). Help me how to put the text at the center of rectangle . thanks you very much.

Accepted Answer

Amit on 31 Dec 2013
No, you can't using the default matlab static text. The verticalAlignment is disabled. However, this might something that you should look at
Another approach would be using edit text with Enable 'off'. That has vertical and horizontal middle by default.
bobo on 24 Aug 2019
When I used edit text with Enable 'inactive' , I could not find the vertical alignment. where to find this parameter?

Sign in to comment.

More Answers (0)


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!

Translated by