GUI made in 2015a not working in 2016b
Afficher commentaires plus anciens
I made a GUI in GUIDE in the 2015a release that worked fine, but after upgrading to 2016b the sizes of all the components are all off, to the point where most of them don't even show up (screen grabs attached).
I tried a couple of things after searching around, including the links below, but none have made a difference. Has anyone had similar problems / found a solution?
These are some of the things I've tried
: https://github.com/RodentDataAnalytics/mwm-ml-gen/issues/1 https://www.mathworks.com/matlabcentral/answers/153254-matlab-scaling-issue-on-high-resolution-high-dpi-displays http://undocumentedmatlab.com/blog/graphic-sizing-in-matlab-r2015b http://undocumentedmatlab.com/blog/working-with-non-standard-dpi-displays
GUI in 2015a:

GUI in 2016b:

The main plot shows up more or less then same, but all of buttons are pushed off-screen. Any help would be appreciated.
3 commentaires
Adam
le 6 Fév 2017
What units are you using for sizing the components? This will happen if the 'Position' of your components is greater than the size of the figure - i.e. the start element of 'Position' or the end from summing either the 1st and 3rd or 2nd and 4th elements.
Why this would have changed between Matlab versions I am not sure, but you may just have to reposition all your components again.
Eric Roots
le 6 Fév 2017
Adam
le 6 Fév 2017
Normalised units do tend to be a bit buggy, especially if you have nested panels. I have had many problems with disappearing components when I have had, e.g. a slider inside a penal inside another panel. Often I end up having to change all the units to pixels and only switch back to normalised once I have positioned everything (which can be done all in one go in the menu options at the top by allowing your UI to be resizable)
Réponses (1)
Daivaraj P
le 3 Juil 2017
0 votes
Hi Eric Roots,
I have removed the nested panels created in earlier version of Matlab GUI, now I can able to see all my GUI objects.
Catégories
En savoir plus sur Creating, Deleting, and Querying Graphics Objects dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!