Page 1 of 1

Custom slider

Posted: Mon Nov 08, 2010 21:29
by HorizonDefeated
Hello,

I'm looking for a slider type control similar to the zoom slider that Google Earth uses (on the right side under the compass deal). Forgive me if I've missed anything obvious/built in, but can anyone point me to any existing control that works similar to this?

Thanks!
Horizon

Re: Custom slider

Posted: Tue Nov 09, 2010 00:30
by Jamarr
Why don't you just use the standard slider in the TaharezLook / WindowsLook looknfeel definitions?

Re: Custom slider

Posted: Tue Nov 09, 2010 00:54
by HorizonDefeated
Sorry, I should have provided more detail in my first post.

I'm after the behavior of the control in Google Earth (don't care about the look so much). Basically the slider looking control causes the thumb to always be centered in the middle (if you aren't holding it with the mouse). Moving it down decrements the controlled value. Moving it up increases the controlled value. Moving it more up/down increases/decreases it faster, etc. The control is a little bit like a scrub control on some AV decks.

Thanks
HorizonDefeated

Re: Custom slider

Posted: Tue Nov 09, 2010 03:13
by ShadowTiger
An easy way to do this would be to subscribe to the scroll position change event and then reset the scroll position to the center and calculate whatever changes you wanted based on how much the position changed.