[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'LCLType' (#lcl)

# tagScrollInfo

The Scrollbar properties parameter record.

## Declaration

Source position: lcltype.pp line 1213

`type tagScrollInfo = record`
`cbSize: UINT;` |  | Must be initialized to sizeof(TScrollInfo).
`fMask: UINT;` |  | Contains the flags for the desired values.
`nMin: Integer;` |  | The minimum Position value.
`nMax: Integer;` |  | The maximum Position value.
`nPage: UINT;` |  | The page size, equivalent to the slider size.
`nPos: Integer;` |  | The slider position.
`nTrackPos: Integer;` |  | The current position while the user is dragging the slider.
`end;`

## Description

This record is used with the GetScrollInfo and SetScrollInfo procedures. before every call fMask must be initialized with the flags for the desired values:

- SIF_DISABLENOSCROLL: when the new parameters make the scrollbar unnecessary, the scrollbar is only disabled, not removed. (write only)
- SIF_PAGE: nPage contains the page size.
- SIF_POS: nPos contains the slider position.
- SIF_RANGE: nMin and nMax contain the scroll limits.
- SIF_TRACKPOS: nTrackPos contains the current slider position, while the user is dragging the slider. (read only)

## See also

GetScrollInfo |  | Returns all or selected information about a Scroll Bar.
SetScrollInfo |  |