TX Text Control ActiveX Documentation

Server Programming

Text Control can be enabled to work as an automation server in scripting engines such as Windows Scripting Host or Internet Information Server. Text Control offers the EnableAutomationServer method that must be called first after creating the automation object.

All Text Control properties and methods can be used with the exception of those needing a visible surface like dialog boxes, toolbars and all features manipulating the display of a document.

Property Overview

The following is a list of properties and methods that cannot be used when Text Control works as an automation server:

Property/MethodDescription
BackStyle PropertyReturns or sets a value indicating whether the background of a Text Control is transparent or opaque.
ButtonBarHandle PropertySpecifies the button bar control to be used with a Text Control.
CanCopy PropertyInforms whether a part of a Text Control's document has been selected and can be copied to the clipboard.
CanPaste PropertyInforms whether the clipboard contains a format that can be pasted into a Text Control's document.
Clip MethodPerforms clipboard operations.
ClipChildren PropertyDetermines whether child controls are excluded from the update area.
ClipSiblings PropertyDetermines whether sibling controls are excluded from the update area.
ControlChars PropertySpecifies whether control characters are visible.
DataText PropertyEnables a Text Control to be used as a bound control.
DataTextFormat PropertyDetermines the data format when Text Control is used as a bound control.
Enabled PropertyReturns or sets a value that determines whether a Text Control can respond to user-generated events.
FindReplace MethodDisplays a 'Find' or 'Replace' dialog box.
FontDialog MethodInvokes Text Control's built-in font dialog box.
GetLineFromPoint MethodReturns the index of the line which contains a given point.
hWnd PropertyReturns a handle to a Text Control.
InputPosFromPoint MethodReturns the text input position belonging to a certain geometric position.
ListAttrDialog MethodInvokes Text Control's built-in dialog box to set the attributes of bulleted and numbered lists.
LockWindowUpdate PropertyDisables or reenables redrawing.
MousePointer PropertyReturns or sets a value indicating the type of mouse pointer.
ParagraphDialog MethodInvokes Text Control's built-in paragraph attributes dialog box.
Refresh MethodForces a complete repaint of a Text Control.
RulerHandle PropertySpecifies the horizontal ruler control to be used with a Text Control.
VerticalRulerHandle PropertySpecifies the vertical ruler control to be used with a Text Control.
SaveToMemory MethodReturns a byte array containing text data in a specified format. Use SaveToMemoryBuffer instead.
ScrollBars PropertyReturns or sets a value indicating whether a Text Control has horizontal or vertical scroll bars.
ScrollPosX PropertySpecifies the position of the horizontal scroll bar.
ScrollPosY PropertySpecifies the position of the vertical scroll bar.
SizeMode PropertySpecifies whether the Text Control can be moved or resized at run time.
StatusBarHandle PropertySpecifies the status bar control to be used with a Text Control.
StyleDialog MethodInvokes the built-in dialog box for creating, deleting and modifying formatting styles.
TabDialog MethodInvokes the built-in dialog box that enables tabs to be set.
TableAttrDialog MethodInvokes Text Control's built-in table attributes dialog box.
ZoomFactor PropertySpecifies the zoom factor for a Text Control.
 
 
 

Products

Support

Downloads

Corporate

Buy Now