Slider control styles are set when a slider window is created. The following table describes linear slider control styles. If no styles are specified, defaults are used as indicated in the table.
┌──────────────────────┬──────────────────────────────────────┐ │Style Name │Description │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_BOTTOM │Positions the slider at the bottom of │ │ │the slider window. Valid only for │ │ │horizontal sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_BUTTONSBOTTOM │Specifies that the optional slider │ │ │buttons are to be used and places them│ │ │at the bottom of the slider shaft. The│ │ │buttons move the slider arm by one │ │ │position, up or down, in the direction│ │ │selected. Valid only for vertical │ │ │sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_BUTTONSLEFT │Specifies that the optional slider │ │ │buttons are to be used and places them│ │ │to the left of the slider shaft. The │ │ │buttons move the slider arm by one │ │ │position, left or right, in the │ │ │direction selected. Valid only for │ │ │horizontal sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_BUTTONSRIGHT │Specifies that the optional slider │ │ │buttons are to be used and places them│ │ │to the right of the slider shaft. The │ │ │buttons move the slider arm by one │ │ │position, left or right, in the │ │ │direction selected. Valid only for │ │ │horizontal sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_BUTTONSTOP │Specifies that the optional slider │ │ │buttons are to be used and places them│ │ │at the top of the slider shaft. The │ │ │buttons move the slider arm by one │ │ │position, up or down, in the direction│ │ │selected. Valid only for vertical │ │ │sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_CENTER │Centers the slider within the slider │ │ │window. This is the default position │ │ │of the slider. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_HOMEBOTTOM │Specifies the slider arm's home │ │ │position. The bottom of the slider is │ │ │used as the base value for │ │ │incrementing. Valid only for vertical │ │ │sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_HOMELEFT │Specifies the slider arm's home │ │ │position. The left edge is used as the│ │ │base value for incrementing. This is │ │ │the default for horizontal sliders and│ │ │is valid only for horizontal sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_HOMERIGHT │Specifies the slider arm's home │ │ │position. The right edge is used as │ │ │the base value for incrementing. Valid│ │ │only for horizontal sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_HOMETOP │Specifies the slider arm's home │ │ │position. The top of the slider is │ │ │used as the base value for │ │ │incrementing. Valid only for vertical │ │ │sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_HORIZONTAL │Positions the slider horizontally. The│ │ │slider arm can move left and right on │ │ │the slider shaft. A scale can be │ │ │placed on top of the slider shaft, │ │ │below the slider shaft, or in both │ │ │places. This is the default │ │ │orientation of the slider. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_LEFT │Positions the slider at the left edge │ │ │of the slider window. Valid only for │ │ │vertical sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_OWNERDRAW │Notifies the application whenever the │ │ │slider shaft, the ribbon strip, the │ │ │slider arm, and the slider background │ │ │are to be drawn. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_PRIMARYSCALE1 │Determines the location of the scale │ │ │on the slider shaft by using increment│ │ │and spacing specified for scale 1 as │ │ │the incremental value for positioning │ │ │the slider arm. Scale 1 is displayed │ │ │above the slider shaft of a horizontal│ │ │slider and to the right of the slider │ │ │shaft of a vertical slider. This is │ │ │the default for a slider. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_PRIMARYSCALE2 │Determines the location of the scale │ │ │on the slider shaft by using increment│ │ │and spacing specified for scale 2 as │ │ │the incremental value for positioning │ │ │the slider arm. Scale 2 is displayed │ │ │below the slider shaft of a horizontal│ │ │slider and to the left of the slider │ │ │shaft of a vertical slider. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_READONLY │Creates a read-only slider, which │ │ │presents information to the user but │ │ │allows no interaction with the user. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_RIBBONSTRIP │Fills, as the slider arm moves, the │ │ │slider shaft between the home position│ │ │and the slider arm with a color value │ │ │different from slider shaft color, │ │ │similar to mercury in a thermometer. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_RIGHT │Positions the slider at the right edge│ │ │of the slider window. Valid only for │ │ │vertical sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_SNAPTOINCREMENT │Causes the slider arm, when positioned│ │ │between two values, to be positioned │ │ │to the nearest value and redrawn at │ │ │that position. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_TOP │Positions the slider at the top of the│ │ │slider window. Valid only for │ │ │horizontal sliders. │ ├──────────────────────┼──────────────────────────────────────┤ │SLS_VERTICAL │Positions the slider vertically. The │ │ │slider arm can move up and down the │ │ │slider shaft. A scale can be placed on│ │ │the left side of the slider shaft, on │ │ │the right side of the slider shaft, or│ │ │in both places. │ └──────────────────────┴──────────────────────────────────────┘