Changing the value of a spinner from another spinner

조회 수: 10 (최근 30일)
Luis Pantin
Luis Pantin 2020년 7월 14일
답변: jonas 2020년 7월 14일
Hello all,
I have 2 spinners in my app, spinner1 and spinner2, and I want to change the value of spinner 2 while I am changing the value of spinner1. I have tried several things without luck. The following code describes what I am trying to do.
function spinner1ValueChanging(app, event)
changingValue = event.Value;
app.spinner2ValueChanging(app, event);
end
Thanks for your help!!
  댓글 수: 2
jonas
jonas 2020년 7월 14일
did you try..
app.spinner2.Value = changingValue
?
Luis Pantin
Luis Pantin 2020년 7월 14일
Yeas I tried that and it worked. Thanks.

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

채택된 답변

jonas
jonas 2020년 7월 14일
I'll just put it here for future reference :)
Like most other objects, the slider is adjusted by changing the value field
app.spinner2.Value = changingValue

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by