Still have .m file, but lost all UI elements in GUIDE

Hey all,
I was designing a GUI, with a large number of UI elements. It was completed, but was too large, so I attempted to change the size. However, matlab gave me a warning that I couldn't do it, because the window style was docked.
I closed, having last saved after modifying my last UI element (but not resizing) and when I ran the attached .m script with all the callbacks, a blank GUI popped up. I reopened the .fig in GUIDE, but it was totally blank too, even though all the elements still exist in the .m file.
In addition, when I try to replace the elements and use the same callback, it says another GUI component is also using that callback. So are they there, just invisible? I certainly can't find them.
WTF? Is this a known bug? Is there a way to recover?
Thanks so much for any help

1 件のコメント

Sean de Wolski
Sean de Wolski 2011 年 12 月 8 日
sure you're in the same directory?

サインインしてコメントする。

回答 (2 件)

Sean de Wolski
Sean de Wolski 2011 年 12 月 8 日

0 投票

To test your invisibility theory:
h = findall(gcf,'visible','off')
while the GUI is the current figure. Hopefully, for your sake, h will not be empty.

5 件のコメント

Benjamin
Benjamin 2011 年 12 月 8 日
The command output a list (10-12 handles) and a blank figure. I tried going through the handles and setting them to visible, but it said they weren't valid handle objects.
Sean de Wolski
Sean de Wolski 2011 年 12 月 8 日
Did you close the figure after finding them? It's still wierd that they wouldn't be showing up in GUIDE even if invisible.
Benjamin
Benjamin 2011 年 12 月 9 日
Nope. Tried both with focus on GUI, and with focus on the new figure window that findall popped up. Not valid handles, though I got them a second earlier.
Sean de Wolski
Sean de Wolski 2011 年 12 月 9 日
At this point, I would recommend contacting us at tech support.
Walter Roberson
Walter Roberson 2011 年 12 月 9 日
Look to see if backup files were created along the way.

サインインしてコメントする。

Ingrid
Ingrid 2013 年 9 月 13 日

0 投票

Nobody that knows what was going on here? I am encountering the same problem, all my uicontrols disappear when I make adjustments to the *.fig file in guide. Luckily I have made a back-up so I still have it, but it is very annoying that I cannot make any adjustments to the fig-file...

1 件のコメント

Ingrid
Ingrid 2013 年 9 月 13 日
to clarify and narrow down possible causes: I have determined that the problem occurs when I define createFcns for my uipanels (to link them to an uitabgroup that can also be reloaded so putting it in the opening function did not work for me)
So I guess I cannot put a createFcn when using guide? it seems that it is trying to create the panel when saving the fig that is modified in guide?
Anyone that can shed some light on this on how to approach this?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

製品

タグ

質問済み:

2011 年 12 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by