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.

 채택된 답변

Amit
Amit 2013년 12월 31일

2 개 추천

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

Nguyen Trong Nhan
Nguyen Trong Nhan 2013년 12월 31일
편집: Nguyen Trong Nhan 2013년 12월 31일
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 2019년 8월 24일
When I used edit text with Enable 'inactive' , I could not find the vertical alignment. where to find this parameter?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

제품

태그

질문:

2013년 12월 31일

댓글:

2019년 8월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by