How do I make a Click and Slide/Drag control with mouse ?

Thanks for the reply! How would I do that exactly? What nodes to use?