A wx:slider obejct is a panel item with a handle which can be pulled back and forth to change a value.
Whenever the value of a slider is changed by the user, the slider's callback procedure is invoked. (The callback procedure is provided as an initialization argument when the slider is created.)
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 label string can mark a character of the label as the Windows shortcut by preceding the key with an ampersand (``&''). Ampersands are stripped from label before it is used as a label. Double ampersands are converted to a single (unstripped) ampersand.
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.