Text Selections and Character Input

Properties

Property Description
TXTextControl.TXTextControl.CurrentInputPosition Returns or sets an array of three values which specify the page, line and column number of the current text input position.
TXTextControl.TXTextControl.FormatSelection Specifies whether character and paragraph formatting properties apply to the whole text or to a particular selection only.
TXTextControl.TXTextControl.HideSelection Specifies whether a text selection is hidden when the Text Control looses the input focus.
TXTextControl.TXTextControl.InsertionMode Specifies whether text is inserted or overwrites existing text.
TXTextControl.TXTextControl.SelLength Returns or sets the number of characters selected.
TXTextControl.TXTextControl.SelStart Returns or sets the starting point of text selected or indicates the position of the insertion point if no text is selected.
TXTextControl.TXTextControl.SelText Returns or sets the string containing the currently selected text.

Methods

Method Description
TXTextControl.TXTextControl.GetCaretRect Returns the rectangular area covered by the caret which indicates the current text input position.
TXTextControl.TXTextControl.InputPosFromPoint Returns the text input position belonging to a certain geometric position.

Events

Event Description
TXTextControl.TXTextControl.Click Occurs when the user presses and then releases a mouse button over a Text Control.
TXTextControl.TXTextControl.DblClick Occurs when the user presses and releases a mouse button and then presses and releases it again over a Text Control.
TXTextControl.TXTextControl.KeyDown Occurs when the user presses a key while the Text Control has the input focus.
TXTextControl.TXTextControl.KeyPress Occurs when the user presses and releases an ANSI key while the Text Control has the input focus.
TXTextControl.TXTextControl.KeyStateChange Occurs when the character insertion mode or when the state of the NUMLOCK or CAPSLOCK key has been changed.
TXTextControl.TXTextControl.KeyUp Occurs when the user releases a key while the Text Control has the input focus.
TXTextControl.TXTextControl.MouseDown Occurs when the user presses a mouse button.
TXTextControl.TXTextControl.MouseMove Occurs when the user moves the mouse.
TXTextControl.TXTextControl.MouseUp Occurs when the user releases a mouse button.
TXTextControl.TXTextControl.PosChange Occurs when the current character input position has been changed.