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 Center および File ExchangeDevelop 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