Why don't uibuttons have 'normalized' coordinates?

조회 수: 15 (최근 30일)
Mikael Agopov
Mikael Agopov 2018년 8월 30일
답변: Vineeth Nair 2018년 9월 10일
The old, "Guide-type" uicontrol-buttons had the very handy 'Units','Normalized' -property, which allowed you to specify their size in normalized coordinates according to your present screen size. The new uibutton-buttons don't have this property - their size has to be given in pixels. This seems strange and inconvenient to me. Why is this so?

채택된 답변

Vineeth Nair
Vineeth Nair 2018년 9월 10일
UI buttons made using app designer , have their units set to 'Pixels' by default. And it can't be changed. You can refer to this answer, where a workaround is given using " SizeChangedFcn ".

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by