James
James

Reputation: 253

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.

Thanks James

Upvotes: 10

Views: 8570

Answers (2)

Mohit Nayeri
Mohit Nayeri

Reputation: 11

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

Upvotes: 1

Jonas
Jonas

Reputation: 74940

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).

Upvotes: 8

Related Questions