开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜