GUI callbacks empty?
显示 更早的评论
I inherited a GUI from an ex-colleague. It was made with GUIDE and has 30 or so items, including a lot of boxes to enter numbers. This is my first foray into GUI programming (in any language), and I thought I was getting the hang of it until I realized that many of the callbacks contain no code. Is it possible that there's some other magic code getting executed somewhere that I can't see?
4 个评论
Ilya Gurin
2022-1-6
Walter Roberson
2022-1-6
That is a common way of writing GUIs. For example if you have a GUI that needs you to enter latitude and longitude then it does not make much sense to have an action after entering only one of the two.
Ilya Gurin
2022-1-6
Walter Roberson
2022-1-6
There is certainly merit to having GUIs do field validation upon entering information -- verifying that a numeric field is convertable to a number for example.
The newer App Designer numeric edit fields are inherently for numeric values, and so reduce the need for validation.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!