A wx:slider obejct is a panel item with a handle which can be pulled back and forth to change a value.
If func is not null, it is used as the callback function when the slider's value is changed.
If label is not null, it will be used to label the slider; otherwise, the slider will not have a label.
The parameters x and y are used to specify an absolute position for the slider within the panel; if -1 is provided, a default position will be assigned such that the slider is placed next to the last item inserted into the panel.
The width value is in pixels; the scroll increment will be adjusted to a suitable value given min-value and max-value.
The style parameter may be wx:const-horizontal to denote a horizontal slider, or wx:const-vertical for a vertical slider.
The name argument is used to associate a name with the slider, allowing the application user to set X Windows resource values for each individual slider.