Exact click-positioning on TrackBars.

  • Thread starter Thread starter RA Horton
  • Start date Start date
R

RA Horton

Does anyone know how to setup a TrackBar, so that the
slider's position can be set exactly with a single click,
rather than moving left/right by LargeChange?

One suggestion i had was overriding the Onclick method,
but that never seems to ever get called.
 
Try giving your trackbar a larger range, like 0-100 or
1000. There will be a lot more places for you to click
on this way.

Range resolution is not my problem.

The problem is that the trackbar pointer always moves a
set distance (LargeChange property), regardless of how far
away the click is from the pointer. For instance, if its
to the far left, it will move the same distance regardless
of how far away from the pointer the click is placed.
 
Back
Top