Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Touch screen scroll bars

Status
Not open for further replies.

AlastairP

Technical User
Feb 8, 2011
286
AU
I would like my scroll bars to behave like touch screen:

A single click starts the drag of the slider until the finger (mouse I guess) moves off the control
Has anyone had any success with this?

Maybe simulate a mousedown event after the click if the mouse is still over the slider?
 
I am working on a new scroll bar class to overcome the issue
I have created a basic slider control that can slide up and down the base container, return an integer value on its position

First problem I have is the x y coordinates of the mouse
In the mouse enter or mouse move method for a shape, they refer to the position of the object on a form, regardless of whether its on the form, or in a container

So the problem I have is how to refer to the position of the slider in relation to the top left of the form when it could be in any number of nested container levels?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top