>I'm creating my own slider class. The slider knob is a ordinary command-button, that can be moved up and down in a container. I want to implement a scroll event to my class, like in the Microsoft Slider Control.
>
>How can I achieve this?
>
>Regards,
>
>Werner Vesteraas
>Simguard AS
You could use the MouseUp event of the CommandButton to detect when the user has stopped 'scrolling'. Then recalculate the new scroll position value, then call a user defined method called 'scroll' attached to the container.
or something similar.