GUIDE Does Not Create/Edit Callbacks in Saved Figures
Show older comments
I'm fairly new to using GUIDE for GUI development, and am having an odd difficulty with my computer. I can't repeat this behavior on other computers: I am running windows 7 with Matlab 2014a. When I open a figure in guide, I cannot edit any callbacks using the guide gui. If I right-click any object and then go to "view callbacks" and select any of the callbacks, instead of opening/creating the corresponding function in the m file, it simply opens the property inspector and jumps to the corresponding entry within the property inspector.
Furthermore, the property inspector, when I click the little "editor" icon next to the callback I want to edit, nothing happens.
When I create a brand new GUI object, both selecting "view callback" with a right click and using the editor icon in the property inspector opens the m file. However, as soon as I have saved and re-opened that GUI, this stops working.
Any suggestions for a workaround or for what might be wrong?
Edit: I'm actually having this problem across computers. It does this in all my installations of Matlab 2014a, which makes it very difficult to get anything done in guide since I have to create new callbacks by hand which I'm sure is not best practice.
5 Comments
J_DHPC
on 18 Mar 2015
I am having the same problem. Did you figure out why this is happening?
Mike
on 26 May 2015
I am having the same issue. I am pretty sure it is a bug in Matlab.
Peipei Liu
on 19 Oct 2015
I know the reason. It is about the set-up of the GUI options. The solution is to select: (Menu) Tools-GUI Options- Generate FIG file and Matlab file- Generate callback function prototypes. Maybe it is a little late for the page host. Hope it will be helpful for others.
Krystof Filip
on 5 Sep 2019
thank you very much!
Ege Potur
on 15 Apr 2021
Thank you so much for your help. It was a life-saver :)))
Answers (0)
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!