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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bind Motion Speed Control

Status
Not open for further replies.

cptk

Technical User
Mar 18, 2003
305
US
If I have a listbox and I'm using the "nearest %y" option to get the index of the listbox (via a bind <B1-Motion> event), how can I prevent skipping a row (in either up/down direction) when the mouse is moved rapidly? I have no problems when the mouse is moved at a normal pace, but sometimes I can skip a row index while moving the mouse rapidly.
I'm curious - is there a way to control the "sampling" of x,y coordinates during the motion bind event, i.e. - increase the accuracy in situations like this?


Any insight would really be appreciated ... thanks!!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top