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. This flag should not be combined with any other. | |||
exHorizontal | 1 | Only horizontal scroll bars are shown. This flag can be combined with any other flag greater or equal with 256. | |||
exVertical | 2 | Only vertical scroll bars are shown. This flag can be combined with any other flag greater or equal with 256. | |||
exBoth | 3 | Both horizontal and vertical scroll bars are shown. This flag can be combined with any other flag greater or equal with 256. | |||
exDisableNoHorizontal | 5 | The horizontal scroll bar is always shown, it is disabled if it is unnecessary. This flag can be combined with any other flag greater or equal with 256. | |||
exDisableNoVertical | 10 | The vertical scroll bar is always shown, it is disabled if it is unnecessary. This flag can be combined with any other flag greater or equal with 256. | |||
exDisableBoth | 15 | Both horizontal and vertical scroll bars are always shown, disabled if they are unnecessary. This flag can be combined with any other flag greater or equal with 256. | |||
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 control's content is horizontally scrolled to the end. If this flag is set, the last visible column, is displayed on leftmost position of the control, when the user horizontally scrolls to the end. | |||
exVScrollEmptySpace | 2048 | Allows empty space, when control's content is vertically scrolled to the end. If this flag is set, the last visible item, is displayed on top of the control, when the user vertically scrolls to the end. |