MATLAB Answers

How to enable "Snap to Tick" for a slider in App Designer?

조회 수: 71(최근 30일)
Farzam Malmir
Farzam Malmir 21 Feb 2019
댓글: Jeff Severino 2 Jul 2019
Hi, I want to know how to make a slider move discretely rather than continuously. As an example, I want the slider to jump from 1 to 2 when I move it. In other words, I need to enable the "Snap to Tick" feature.
Thanks in advance.
  댓글 수: 2
Farzam Malmir
Farzam Malmir 22 Feb 2019
In the same slider you posted, for example I want the slider handle sits on the tick intervals not between them. for example I want 1, 2, 3 ... rather than 1.48

댓글을 달려면 로그인하십시오.

답변(1개)

Kevin Chng
Kevin Chng 22 Feb 2019
Untitled.png
Is it what you expect? If you are using app designer, on your left hand side bottom, there is configuration you may edit. Empty the minor tick, and modify the major tick to 1,2,3,4,5.
Don't forgot to change the limit as well to 0,5
  댓글 수: 3

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by