필터 지우기
필터 지우기

App designer: Enable mouse scroll to change value on slider

조회 수: 11 (최근 30일)
Kaia Sørland
Kaia Sørland 2020년 2월 25일
답변: J. Alex Lee 2020년 2월 25일
In the app designer: Is it possible to change the value on the slider by scrolling? Or possibly by using arrows on the keyboard?

채택된 답변

J. Alex Lee
J. Alex Lee 2020년 2월 25일
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개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by