Changing the value of a spinner from another spinner

10 Ansichten (letzte 30 Tage)
Luis Pantin
Luis Pantin am 14 Jul. 2020
Beantwortet: jonas am 14 Jul. 2020
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 Kommentare
jonas
jonas am 14 Jul. 2020
did you try..
app.spinner2.Value = changingValue
?
Luis Pantin
Luis Pantin am 14 Jul. 2020
Yeas I tried that and it worked. Thanks.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

jonas
jonas am 14 Jul. 2020
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

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by