필터 지우기
필터 지우기

When a tag is defined for an app designer slider, the value-changing-function for that slider is not triggered.

조회 수: 51 (최근 30일)
I'm using Version R2024a. When I create a slider component in App Designer and define a ValueChangingFcn for it, it works fine ... as long as "Tag" (in the "Identifiers" section of the slider) has not been defined. That is, the ValueChangingFcn callback is called as I drag the slider. However, if I define Tag (e.g. 'abc' without the quotes), then the ValueChangingFcn is no longer called when I drag the slider.
I should mention that this appears to occur only with the slider. With a Numeric Edit Field, the presence of a tag has no adverse effect on the call to its callback.
Does anyone know a workaround?
  댓글 수: 13
dpb
dpb 2024년 10월 8일 17:16
편집: dpb 2024년 10월 8일 17:17
That is interesting observation and indeed undoubtedly there's something related somehow; those symptoms would seem to imply the conversion still leaves links to older code left over from GUIDE days despite all the visible user source code being in the new app designer interface.
I would think this would be of interest to Mathworks; I wonder if it is intended or an artifact of the translation that isn't doing what is expected. Or, maybe there's stuff buried so deep behind the scenes it simply isn't possible for the conversion app to be able to fix.
Does your UI rely on the 'Changing' callback to do something different than from the 'Changed' callback?
Sherman Marcus
Sherman Marcus 2024년 10월 8일 19:49
My UI definitely takes advantage of 'changing' rather than 'changed'. When 'changing', I can show the effects while moving the pointer, thereby providing ongoing insight into the various physical phenomena. As a matter of fact, even in GUIDE, I recall I used some "listener" function to provide that same 'changing' effect.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by