Borrar filtros
Borrar filtros

App designer: Enable mouse scroll to change value on slider

11 visualizaciones (últimos 30 días)
In the app designer: Is it possible to change the value on the slider by scrolling? Or possibly by using arrows on the keyboard?

Respuesta aceptada

J. Alex Lee
J. Alex Lee el 25 de Feb. de 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().

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by