wxSlider::SetValue

void SetValue(int value)

Sets the value (and displayed position) of the slider).