Help me about the Static text og GUIDE ?

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.

 Respuesta aceptada

Amit
Amit el 31 de Dic. de 2013

2 votos

No, you can't using the default matlab static text. The verticalAlignment is disabled. However, this might something that you should look at http://www.mathworks.com/matlabcentral/fileexchange/14583-uicomponent-expands-uicontrol-to-all-java-classes
Another approach would be using edit text with Enable 'off'. That has vertical and horizontal middle by default.

2 comentarios

Nguyen Trong Nhan
Nguyen Trong Nhan el 31 de Dic. de 2013
Editada: Nguyen Trong Nhan el 31 de Dic. de 2013
I think I should use edit text with Enable 'inactive' because the text will not blear as Enable 'off'. Anyway thank you very much.
bobo
bobo el 24 de Ag. de 2019
When I used edit text with Enable 'inactive' , I could not find the vertical alignment. where to find this parameter?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 31 de Dic. de 2013

Comentada:

el 24 de Ag. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by