MATLAB Answers

App designer: Enable mouse scroll to change value on slider

26 views (last 30 days)
Kaia Sørland
Kaia Sørland on 25 Feb 2020
Answered: J. Alex Lee on 25 Feb 2020
In the app designer: Is it possible to change the value on the slider by scrolling? Or possibly by using arrows on the keyboard?

  0 Comments

Sign in to comment.

Accepted Answer

J. Alex Lee
J. Alex Lee on 25 Feb 2020
Take a look at the UIFigure's following properties:
  • WindowScrollWheelFcn
  • WindowKeyPressFcn
  • WindowKeyReleasedFcn
If you need these only to work while the mouse is over the slider element, you can test the mouse's location with hittest().

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by