SetTrackBarStep trackbar,step
Parameters
|
trackbar - trackbar gadget step - amount the arrow keys move the value; must be positive |
Description
|
Sets how far a trackbar moves per keyboard step. Requires Extended language mode. With the trackbar focused, the arrow keys nudge the value by this step, and Page Up/Page Down jump by ten steps (capped so a page never overshoots the range). The default step is 1; a percentage control stepping in tens uses SetTrackBarStep scaleBar,10. Dragging the thumb with the mouse is continuous and ignores the step, so treat the step as a keyboard convenience, not a guarantee that values are multiples of it. Zero or negative steps stop with a runtime error. See it working in the native input controls sample. See also: CreateTrackBar, SetTrackBarRange, SetTrackBarValue, TrackBarValue. |
Index