Why am I unable to view the callbacks for my GUI components in the Editor when I click on them in the GUIDE property inspector in MATLAB 7.6 (R2008a)?
3 次查看(过去 30 天)
显示 更早的评论
When I right-click on a GUI component in GUIDE and click on "View Callbacks > Callback" I am not taken to the component's callback function in the GUI program file. Instead the property inspector opens up. If I click on the icon next to the "Callback" property, nothing happens.
采纳的回答
MathWorks Support Team
2010-1-21
This behavior can manifest if a GUIDE FIG-file is copied to create a new GUI. When the new FIG-file is opened in GUIDE, the callback properties of the GUI components still point to the old GUI program file. Therefore, if a new component is added, its callbacks will not be automatically created in the GUI program file and attempts to view the callback functions will be unsuccessful.
To correctly copy an existing GUI to a new GUI, open it up in GUIDE and choose "File > Save As". This will create a new GUI program file and modify all the callbacks of the GUI components.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!