TX Text Control ActiveX

Control Settings

Topic

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

MemberDescription
TXTextControl.AllowDragGets or sets a value indicating whether the control can be a source of a Drag&Drop operation.
TXTextControl.AllowDropGets or sets a value indicating whether the control can accept data that the user drags onto it.
TXTextControl.AutoExpandSpecifies 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.BackColorReturns or sets the background color of a TXTextControl.
TXTextControl.BackStyleReturns or sets a value indicating whether the background of a TXTextControl is transparent or opaque.
TXTextControl.BorderStyleReturns or sets the border style for a TXTextControl.
TXTextControl.CaretWidthThis property returns or sets the width of the caret in pixels.
TXTextControl.ClipboardFormatsReturns 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.ClipChildrenThis property is only used for TXTextControls which act as a container for other TXTextControl controls or embedded objects.
TXTextControl.ClipSiblingsThis property determines the clipping behavior of each of the child controls which belong to a common container control.
TXTextControl.ControlCharsSpecifies if control characters are visible.
TXTextControl.DisplayColorThis property gets or sets the display colors of a TextControl.
TXTextControl.EnabledReturns or sets a value that determines whether a TXTextControl can respond to user-generated events.
TXTextControl.FontSettingsDetermines which kind of fonts can be used in a document.
TXTextControl.hWndReturns a handle to a TXTextControl.
TXTextControl.LanguageDetermines the language in which TXTextControl displays dialog boxes and error messages.
TXTextControl.LockWindowUpdateDisables or reenables redrawing.
TXTextControl.MousePointerReturns 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.PermanentControlCharsGets or sets a value specifying which control characters are shown permanently on the screen.
TXTextControl.ResourceFileReturns 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.RightToLeftReturns 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.SelectionViewModeSpecifies whether text selections are displayed with a transparent bitmap or through inverting the text.
TXTextControl.SizeModeSpecifies whether the TXTextControl can be moved or resized at run time.
TXTextControl.SupportedFontsThis property returns a string specifying the names of all available fonts.
TXTextControl.TabKeyDetermines if the keyboard's tab key moves the input focus to the next control or to insert tabulators in the TXTextControl's text.
TXTextControl.ViewModeReturns or sets the mode in which TXTextControl displays its text contents.
TXTextControl.WordWrapModeThis property returns or sets the mode how TXTextControl handles word wrapping in lines without space or other word breaking characters.

Methods

MemberDescription
TXTextControl.GetTextExtentReturns the extension of the complete text in twips.
TXTextControl.LocaleDialogInvokes 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.PasteReplaces the current selection in the TXTextControl with the contents of the Clipboard.
TXTextControl.RefreshThis method forces a complete repaint of a TXTextControl.

Events

MemberDescription
TXTextControl.ContextMenuOpeningOccurs before a built-in context menu is opened.
TXTextControl.ErrorOccurs when the TXTextControl reports an error.
TXTextControl.HExpandOccurs when the TXTextControl has changed its window size horizontally.
TXTextControl.MoveOccurs when a TXTextControl has been moved with the mouse.
TXTextControl.SizeOccurs when a TXTextControl has been resized with the mouse.
TXTextControl.VExpandOccurs when the TXTextControl has changed its window size vertically.