Scroll-Bar Styles

A scroll bar has styles that determine what it looks like and how it responds to input. Styles are specified in the WinCreateWindow function or the CONTROL statement. A scroll-bar can have the following styles:

┌───────────────┬─────────────────────────────────────────────┐
│Style          │Meaning                                      │
├───────────────┼─────────────────────────────────────────────┤
│SBS_AUTOTRACK  │Causes the entire slider to track the        │
│               │movement of the mouse pointer when the user  │
│               │scrolls the window. Without this style, only │
│               │an outlined image of the slider tracks the   │
│               │movement of the mouse pointer, and the slider│
│               │jumps to the new location when the user      │
│               │releases the mouse button.                   │
├───────────────┼─────────────────────────────────────────────┤
│SBS_HORZ       │Creates a horizontal scroll bar.             │
├───────────────┼─────────────────────────────────────────────┤
│SBS_THUMBSIZE  │Used to calculate the size of the scroll-bar │
│               │slider from the SBCDATA passed to            │
│               │WinCreateWindow.                             │
├───────────────┼─────────────────────────────────────────────┤
│SBS_VERT       │Creates a vertical scroll bar.               │
└───────────────┴─────────────────────────────────────────────┘


[Back: Scroll-Bar Creation]
[Next: Scroll-Bar Range and Position]