TX Text Control ActiveX

Scrolling

Topic

Scrolling in TXTextControl is controlled by the scroll bars and by the scroll position in both directions. The events report scrolling and tell you when the caret leaves the visible part of the control.

Properties

MemberDescription
TXTextControl.ScrollBarsReturns or sets a value indicating whether a TXTextControl has horizontal or vertical scroll bars.
TXTextControl.ScrollPosXSpecifies the position of the horizontal scroll bar in twips.
TXTextControl.ScrollPosYSpecifies the position of the vertical scroll bar in twips.

Events

MemberDescription
TXTextControl.AutoScrollThis event occurs when the cursor leaves the visible portion of a TXTextControl's client area while a text selection is being expanded with the mouse.
TXTextControl.CaretOutOccurs when the current input position indicated through the caret has been moved to a control that is completely out of the visible area.
TXTextControl.CaretOutBottomOccurs when the current input position indicated through the caret has been moved out of the visible area at the bottom.
TXTextControl.CaretOutLeftOccurs when the current input position indicated through the caret has been moved out of the visible area at the left side.
TXTextControl.CaretOutRightOccurs when the current input position indicated through the caret has been moved out of the visible area at the right side.
TXTextControl.CaretOutTopOccurs when the current input position indicated through the caret has been moved out of the visible area at the top.
TXTextControl.HScrollOccurs when the horizontal scroll position has been changed.
TXTextControl.VScrollOccurs when the vertical scroll position has been changed.