# Making a button slider

**URL:** <https://forum.kirupa.com/t/making-a-button-slider/286184>\
**Category:** Uncategorized\
**Created:** [April 11, 2009, 2:26pm UTC](https://forum.kirupa.com/t/making-a-button-slider/286184 "2009-04-11T14:26:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![werehunt](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@werehunt](https://forum.kirupa.com/u/werehunt)\
**Post date:** [April 11, 2009, 2:26pm UTC](https://forum.kirupa.com/t/making-a-button-slider/286184/1 "2009-04-11T14:26:07Z")

</div>

like photoshop cs3 has, flash cs4 also… and probably some others…

[![](http://img7.imageshack.us/img7/7290/10803325.jpg)](http://img7.imageshack.us/my.php?image=10803325.jpg)

a textfield which acts like a button and when you press and hold down the mouse and move up or right the value increases and when you move down or left value decreases.

a need a suggestion how to do this the most efficiently…  
on a mouse\_down how would I track where the mouse is moving and how much it has moved in what direction so i can ajust the value in the textfield?
