Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Andrew Banks
|
Oct 5, 2007 - 8:34 PM
|
I would like a slider that represents a range of values rather than just one.
Therefore, say the min/max were 0-100. Once I move the slider from 0 up, a painted bar follows the slider upward similar to a progress bar.
That way, it is clear to the user that all values from 0 to the slider bar are included.
Do you have this. I don’t see it in the docu.
|
|
Technical Support
|
Oct 8, 2007 - 2:14 PM
|
In the AdoRecordsetView sample, you can find a custom painted slider window near the bottom of the vertical scroll bar in it. This control is implemented in the CInplaceSliderWnd class. As you can see, its painting code is very simple. You can put this class into your project and use it. It requires only a small improvement to fit your requirements. The rcChannel and rcThumb rectangle can be used for computing left/and right parts which you can fill using some desired color.
|
|