trackbar with log scale

bwells

Regular
Joined
Feb 25, 2003
Messages
84
I need a trackbar that has a logarithmic scale instead of a linear scale. Can someone tell me if this is possible and perhaps suggest how I can accomplish this?
 
logarithmic linear You may get a better response if you explain what those words mean. Because I do not know what they mean.
 
Actually what I needed is a slider that support a discrete set of values with an increment other than 1. Originally, my post was to see if I could get a log scale where the values on the slider would be the log of log of a computed value. Overriding the Value property, I was able to take care of this, but I still cannot get a good scale with numbers that match the values. So instead I display the values in a text area beside the slider. What I still need to do is to draw the tick marks and numbers that match the the computed value in a way that they are not evenly spaced.

  0.1    1.3   1.699    2.0      3.0            5.0             10.0
 
Last edited:
I like your example, it really displays what you are looking for. Can you manually draw the lines and numbers on the scale? Maybe you could set a ration 1 pixel = 0.1 numbers
 
Back
Top