Why don't uibuttons have 'normalized' coordinates?

26 visualizaciones (últimos 30 días)
Mikael Agopov
Mikael Agopov el 30 de Ag. de 2018
Respondida: Vineeth Nair el 10 de Sept. de 2018
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?

Respuesta aceptada

Vineeth Nair
Vineeth Nair el 10 de Sept. de 2018
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 ".

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by