开发者

Resizing panels in GUIs without changing size of the contents (MATLAB)

开发者 https://www.devze.com 2022-12-24 17:12 出处:网络
Does anyone know how to change the size of a panel in the gui editor (guide) without changing the size of the contents? At the moment, if I change the size of the panel, I have to spend three times as

Does anyone know how to change the size of a panel in the gui editor (guide) without changing the size of the contents? At the moment, if I change the size of the panel, I have to spend three times as long changing the size of the contents, and its a real pain.

Than开发者_如何转开发ks James


GUI components, such as buttons are only resized when you resize the GUI if their units are set to 'normalized'. Set the units to characters in the property inspector, and you should be fine (you can use the property inspector to edit multiple components at the same time).


To make the text inside a panel resize automatically, set the fontUnits property to 'normalized'.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号