GUI callbacks empty?

조회 수: 2 (최근 30일)
Ilya Gurin
Ilya Gurin 2022년 1월 6일
댓글: Walter Roberson 2022년 1월 6일
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
Ilya Gurin 2022년 1월 6일
Right. It's a similar situation here. All the numbers feed into one action. But if it were up to me, I would convert the entered text into numbers immediately and store it in a suitable structure. On the other hand, I can't think of a good reason why the way it's written would be wrong.
Walter Roberson
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개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by