# Control Settings

> Set the border, background, view mode, mouse pointer, drag and drop, dialog language and word wrap of TXTextControl and handle Error, Move and Size events.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control ActiveX > API Reference > Programming Categories > Control Settings
- **1916 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/control-settings/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/control-settings/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/categories/control-settings/llms-full.txt

---

Settings that apply to the control as a whole rather than to its text are grouped here: the border and background of `TXTextControl`, the mouse pointer, drag and drop, the view mode, the language of its dialog boxes, word wrapping and the display of control characters.

Methods repaint the control, paste and measure text, and events report errors, moves, resizing, expanding and the opening of the context menu.

### Properties

| Member | Description |
|---|---|
| [`TXTextControl.AllowDrag`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/allowdrag-property/llms-full.txt) | Gets or sets a value indicating whether the control can be a source of a Drag&Drop operation. |
| [`TXTextControl.AllowDrop`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/allowdrop-property/llms-full.txt) | Gets or sets a value indicating whether the control can accept data that the user drags onto it. |
| [`TXTextControl.AutoExpand`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/autoexpand-property/llms-full.txt) | Specifies whether the control size should expand automatically when the text insertion or format changes results in text that does not fit into the `TXTextControl` anymore. |
| [`TXTextControl.BackColor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/backcolor-property/llms-full.txt) | Returns or sets the background color of a `TXTextControl`. |
| [`TXTextControl.BackStyle`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/backstyle-property/llms-full.txt) | Returns or sets a value indicating whether the background of a `TXTextControl` is transparent or opaque. |
| [`TXTextControl.BorderStyle`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/borderstyle-property/llms-full.txt) | Returns or sets the border style for a `TXTextControl`. |
| [`TXTextControl.CaretWidth`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/caretwidth-property/llms-full.txt) | This property returns or sets the width of the caret in pixels. |
| [`TXTextControl.ClipboardFormats`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/clipboardformats-property/llms-full.txt) | Returns an array of Integer values specifying all the data formats which are currently available in the clipboard and which can be pasted into a TextControl document. |
| [`TXTextControl.ClipChildren`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/clipchildren-property/llms-full.txt) | This property is only used for `TXTextControl`s which act as a container for other `TXTextControl` controls or embedded objects. |
| [`TXTextControl.ClipSiblings`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/clipsiblings-property/llms-full.txt) | This property determines the clipping behavior of each of the child controls which belong to a common container control. |
| [`TXTextControl.ControlChars`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/controlchars-property/llms-full.txt) | Specifies if control characters are visible. |
| [`TXTextControl.DisplayColor`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/displaycolor-property/llms-full.txt) | This property gets or sets the display colors of a TextControl. |
| [`TXTextControl.Enabled`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/enabled-property/llms-full.txt) | Returns or sets a value that determines whether a `TXTextControl` can respond to user-generated events. |
| [`TXTextControl.FontSettings`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontsettings-property/llms-full.txt) | Determines which kind of fonts can be used in a document. |
| [`TXTextControl.hWnd`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hwnd-property/llms-full.txt) | Returns a handle to a `TXTextControl`. |
| [`TXTextControl.Language`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/language-property/llms-full.txt) | Determines the language in which `TXTextControl` displays dialog boxes and error messages. |
| [`TXTextControl.LockWindowUpdate`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/lockwindowupdate-property/llms-full.txt) | Disables or reenables redrawing. |
| [`TXTextControl.MousePointer`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/mousepointer-property/llms-full.txt) | Returns or sets a value indicating the type of mouse pointer displayed when the mouse is over a particular part of a `TXTextControl` at run time. |
| [`TXTextControl.PermanentControlChars`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/permanentcontrolchars-property/llms-full.txt) | Gets or sets a value specifying which control characters are shown permanently on the screen. |
| [`TXTextControl.ResourceFile`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/resourcefile-property/llms-full.txt) | Returns or sets the file name of a resource library which `TXTextControl` loads to display resources like information strings, error messages and built-in dialog boxes. |
| [`TXTextControl.RightToLeft`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/righttoleft-property/llms-full.txt) | Returns or sets a value specifying whether the `TXTextControl`'s vertical scrollbar is at the left or right border and whether the `TXTextControl` has a right or left zoom origin. |
| [`TXTextControl.SelectionViewMode`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/selectionviewmode-property/llms-full.txt) | Specifies whether text selections are displayed with a transparent bitmap or through inverting the text. |
| [`TXTextControl.SizeMode`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/sizemode-property/llms-full.txt) | Specifies whether the `TXTextControl` can be moved or resized at run time. |
| [`TXTextControl.SupportedFonts`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/supportedfonts-property/llms-full.txt) | This property returns a string specifying the names of all available fonts. |
| [`TXTextControl.TabKey`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/tabkey-property/llms-full.txt) | Determines if the keyboard's tab key moves the input focus to the next control or to insert tabulators in the `TXTextControl`'s text. |
| [`TXTextControl.ViewMode`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/viewmode-property/llms-full.txt) | Returns or sets the mode in which `TXTextControl` displays its text contents. |
| [`TXTextControl.WordWrapMode`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/wordwrapmode-property/llms-full.txt) | This property returns or sets the mode how `TXTextControl` handles word wrapping in lines without space or other word breaking characters. |

### Methods

| Member | Description |
|---|---|
| [`TXTextControl.GetTextExtent`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/gettextextent-method/llms-full.txt) | Returns the extension of the complete text in [twips](https://docs.textcontrol.com/tx-text-control-activex/document-editor/viewing/#measure-in-twips). |
| [`TXTextControl.LocaleDialog`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/localedialog-method/llms-full.txt) | Invokes the `TXTextControl`'s built-in language dialog box and, after the user has closed the dialog box, specifies whether the user has changed something. |
| [`TXTextControl.Paste`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/paste-method/llms-full.txt) | Replaces the current selection in the `TXTextControl` with the contents of the Clipboard. |
| [`TXTextControl.Refresh`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/refresh-method/llms-full.txt) | This method forces a complete repaint of a `TXTextControl`. |

### Events

| Member | Description |
|---|---|
| [`TXTextControl.ContextMenuOpening`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/contextmenuopening-event/llms-full.txt) | Occurs before a built-in context menu is opened. |
| [`TXTextControl.Error`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/error-event/llms-full.txt) | Occurs when the `TXTextControl` reports an error. |
| [`TXTextControl.HExpand`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hexpand-event/llms-full.txt) | Occurs when the `TXTextControl` has changed its window size horizontally. |
| [`TXTextControl.Move`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/move-event/llms-full.txt) | Occurs when a `TXTextControl` has been moved with the mouse. |
| [`TXTextControl.Size`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/size-event/llms-full.txt) | Occurs when a `TXTextControl` has been resized with the mouse. |
| [`TXTextControl.VExpand`](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/vexpand-event/llms-full.txt) | Occurs when the `TXTextControl` has changed its window size vertically. |

### Related Pages

- [Zooming](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/zooming/llms-full.txt): zoom factor and zoom events.
- [Tool Bars](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/toolbars/llms-full.txt): connect the button bar, ruler bars and status bar.
- [Text Selections and Character Input](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/selections/llms-full.txt): selection, input position, mouse and keyboard events.

---

## Nearby

- **Previous:** [Line and Character Operations](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/line-character/llms-full.txt)
- **Next:** [Spell Checking](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/spell-checking/llms-full.txt)
