how to limit which uicontrols are stretched when a GUI window is resized
11 views (last 30 days)
I am working on a GUI and having problems when the window is resized. There is an image in the middle of the GUI, with buttons above and below. When the window is resized what I'd ideally like is the image to stretch, but the buttons above and below to remain the same size.
I can't do it by specifying character units on the buttons and normalized units on the image. I don't see a way of 'anchoring' the controls together (like you can do in Java).
I think one way would be to recalculate the positions of all controls in the window resize function. But before I try to tackle that I was hoping someone could come up with a better (easier) way.
I appreciate any suggestions. Thanks.