Use the Scroll method to programmatically scroll the control's content to specified position. The ScrollPos property determines the position of the control's scroll bars. The ScrollWidth property specifies the width in pixels, of the vertical scroll bar. The ScrollHeight property specifies the height in pixels of the horizontal scroll bar. The ScrollOrderParts property specifies the order to display the parts of the scroll bar ( buttons, thumbs and so on ). The ScrollPartCaption property specifies the caption to be shown on any part of the scroll bar. Use the SelectPos property to select items giving its position.
The ScrollBars property supports a bitwise OR combination of the following
values:
Name | Value | Description | |||
exNoScroll | 0 | No scroll bars are shown | |||
exHorizontal | 1 | Only horizontal scroll bars are shown. | |||
exVertical | 2 | Only vertical scroll bars are shown. | |||
exBoth | 3 | Both horizontal and vertical scroll bars are shown. | |||
exDisableNoHorizontal | 5 | The horizontal scroll bar is always shown, it is disabled if it is unnecessary. | |||
exDisableNoVertical | 10 | The vertical scroll bar is always shown, it is disabled if it is unnecessary. | |||
exDisableBoth | 15 | Both horizontal and vertical scroll bars are always shown, disabled if they are unnecessary. | |||
exHScrollOnThumbRelease | 256 | Scrolls the control's content when the user releases the thumb of the horizontal scroll bar. Use this option to specify that the user scrolls the control's content when the thumb of the scroll box is released. | |||
exVScrollOnThumbRelease | 512 | Scrolls the control's content when the user releases the thumb of the vertical scroll bar. Use this option to specify that the user scrolls the control's content when the thumb of the scroll box is released. | |||
exHScrollEmptySpace | 1024 | Allows empty space, when the control's content is horizontally scrolled to the end. If this flag is set, the user can horizontally scrolls the control's content until last column is visible, and so you can have empty space to the right or left of the columns. | |||
exVScrollEmptySpace | 2048 | Allows empty space, when the control's content is vertically scrolled to the end. If this flag is set, the user can vertically scrolls the control's content until last item is visible, and so you can have empty space after the last visible item. |