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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top