Event macros for use with Origin C Slider objects include:
BOOL _ocHandler(Control ctrl, uint nScrollCode, uint nScrollPos)
For a detailed example demonstrating how to handle Slider events see the topic Accessing a Static and Slider Controls with Origin C.