Handling the size of MATLAB GUI programmatically?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sudhanshu Goel
am 27 Okt. 2016
Kommentiert: Sudhanshu Goel
am 8 Nov. 2016
I have a matlab GUI whose resize behavior property is set to "Proportional". This is good if I want to increase the size of GUI i.e. the size of all components (Pushbuttons etc.) increase in proportion to the size of GUI figure. The problem occurs when I reduce the size of GUI figure. Reducing the size beyond a point distort the shapes and appearance of GUI components.
What I want is a way by which I can fix a minimum size of my GUI and from there it can be resized proportionally.
0 Kommentare
Akzeptierte Antwort
Jan
am 27 Okt. 2016
I tried a lot inside Matlab without success: Catching the position in the ResizeFcn and setting it to a specific limit, did not work reliably. Therefore I've used the Java method in http://mathworks.com/matlabcentral/fileexchange/38527-limit-figure-size. Unfortunately this failed in R2011b, but I assume it is working in modern Matlab versions again.
3 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!