GUiDE, is there a difference between setting up properties in OpeningFcn and setting them on the createFcn of each gui element?
1 次查看(过去 30 天)
显示 更早的评论
Is there a reason to choose one over the other, besides code modularity?
0 个评论
采纳的回答
Shashank Prasanna
2013-1-25
OpeningFcn is specific to guide GUIs and will run each time the guide GUI is executed. http://www.mathworks.com/help/matlab/creating_guis/initializing-a-guide-gui.html
CreateFcn on the other hand is a figure property defined here: http://www.mathworks.com/help/matlab/ref/figure_props.html This is executed when MATLAB creates a figure object
If you are working on a GUIDE GUI and want to manager data in the GUIDE GUI, its recommended to use openingfcn, as explained in the first link above.
0 个评论
更多回答(0 个)
另请参阅
类别
在 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!