GUIDE, help to get around GUI inconsistencies

Hi,
I have some problems with a GUI application that I've developed in GUIDE. Whenever I open it on a new Matlab version or on a different platform it looks like crap. Sometimes the controls have moved so far I cannot reach them in the GUIDE editor. I've realized and also read here that GUIDE is a terrible poorly functional mess. But it would be nice to know if anyone knows a solution to the problem other than rewriting my code and never use GUIDE again.
I've tried to copy all positions and units from a functioning version and loading that but without success. I use Matlab 2010 and 2012 on windows and linux.
Best, Anders

Réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 10 Fév 2013

0 votes

If your code is not big. rename your m-file, then create a new m-file with your fig-file. Then copy the content of your functions and test them one by one.

1 commentaire

Azzi Abdelmalek
Azzi Abdelmalek le 10 Fév 2013
Modifié(e) : Azzi Abdelmalek le 10 Fév 2013
  1. rename your first file file1.m to file2.m,
  2. then delete file1.m, or move it to another folder.
  3. run you gui file1.fig. Matlab will generate a new m-file file1.m
  4. try to copy from the old file (file2.m) the code you've added to each button or object, one by one, until the gui works fine

Connectez-vous pour commenter.

Image Analyst
Image Analyst le 10 Fév 2013

0 votes

Your app will look different on different computers due to differences in video adapters and their settings. It may help if you set the "units" property of all your controls to 'normalized.'
It's well known that GUIDE is primitive, especially by today's standards. They are working on an upgrade to it (and have been for many years). I hope to see it soon but they aren't giving an ETA on that.

Catégories

En savoir plus sur App Building dans Centre d'aide et File Exchange

Tags

Question posée :

le 10 Fév 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by