Effacer les filtres
Effacer les filtres

App designer: Enable mouse scroll to change value on slider

11 vues (au cours des 30 derniers jours)
Kaia Sørland
Kaia Sørland le 25 Fév 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?

Réponse acceptée

J. Alex Lee
J. Alex Lee le 25 Fév 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().

Plus de réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by