App lab how to make a slider?

csp-unit-3

#1

How do I make a slider on the screen, so I can drag between two variables?


#2

Hi @rfarnay,

Can you clarify what you mean by “drag between two variables”?

I created a super simple demo of the slider here to show basic usage: https://studio.code.org/projects/applab/nQE9Wc2gZ-azRShsRLPKbg

Frank


#3

For example, how to change volume of music using slider.


#4

I don’t think you can control the volume in AppLab, BUT I can show you how to use the slider:

Happy coding @rfarnay


#5

Your slider demo is so much better than mine. :sweat:

:grin:


#6

Haha - TOTALLY missed your link! #DuelingDemos