MATLAB 2014b missing GUIDE elements
3 次查看(过去 30 天)
显示 更早的评论
I started creating a GUIDE GUI in 2014a and have just upgraded to 2014b. I was aware that some GUI elements may be hidden due to the new graphics system. And, lo and behold, parts were "missing" when I ran it. I fixed these minor points and carried on.
However, larger parts of the GUI, which initially worked in 2014b, disappeared (as well as having the positions of some elements reset to [0,0,1,1]). So, with a big pot of coffee, away I went fixing it, moving things back and front and in and out of their parent panels. Then I re-ran my and GUI everything looks as it should.
The catch, however, is when I close and re-run GUIDE (after saving), big chunks of the GUI are not visible in GUIDE. When I run the GUI, however, everything is as it should be. I have re-tweak the GUI in GUIDE to make elements visible, and it all works fine. But again, saving and restarting GUIDE leaves elements hidden. The GUI, however, still looks as it should.
In short, my GUI works as it should, but it is a pain to edit with GUIDE because of the elements being hidden. This is my first GUI, so missing something really obvious is a possibility. I'm running 2014b, on OS X Mavericks.
8 个评论
Luca Amerio
2015-3-19
编辑:Luca Amerio
2015-3-19
Same problem here. Components inside panels works fine when I run the GUI, but inside GUIDE they are invisible. They are there, I can click them or select them from the object browser. I can change their properties etc etc.
BUT I CAN'T SEE THEM IN GUIDE
The units of these objects weren't normalized, but they were all hidden by default(they were meant to appear after a certain action).
I tried to upgrade to 2015a, but nothing changed.
I already ran both the updater tools. Nothing changed. I also told the panels to "Send to back". Again nothing changed.
I noticed however that even brand new components added to those panels are hidden.
UPDATE: I found that a simple cut & paste of the flawed object restore their appearance. However this screws up all the tags and the callbacks. This means a quite long work to fix everything again.
UPDATE2: If you undo (instead of paste) the Tags will be correct and the workaround still works. I wrote this below as proposed "solution" (more a workaround than a solution though).
Vincent
2015-5-13
I'm having the same problem. I also used nested panels in my GUI. Some panels disappear in both GUIDE and when I run the GUI.
Luca Amerio's fix works most of the time, but is there a "proper" solution yet?
采纳的回答
Luca Amerio
2015-3-19
I found a work-around: if you cut (or delete) the panel and then UNDO, the panel's elements appears at their place. Pay attention not to PASTE because this screws up all the tags and the callbacks.
Once you save and re-open the gui, the elements are again invisible and the procedure has to be repeated.
A fast way is to open the gui and then "select all" (CTRL-A), delete (DEL) and undo (CTRL-Z). Everything will be then fine.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!