wxSlider::wxSlider

void wxSlider(wxPanel *parent, wxFunction func, char *label, int value, int min_value, int max_value, int width, int x = -1, int y = -1, int style = 0, char *name = "slider")

Constructor, creating and showing a horizontal slider.

func may be NULL; otherwise it is used as the callback for the slider. Note that the cast (wxFunction) must be used when passing your callback function name, or the compiler may complain that the function does not match the constructor declaration.

If label is non-NULL, it will be used to label the slider.

The parameters x and y are used to specify an absolute position, or a position after the previous panel item if omitted or default.

The width is in pixels, and the scroll increment will be adjusted to a suitable value given the minimum and maximum integer values.

The name parameter is used to associate a name with the item, allowing the application user to set Motif resource values for individual sliders.