TX Text Control ActiveX

Server Programming

Topic

Scripting engines such as Windows Scripting Host or Internet Information Server can use TX Text Control ActiveX as an automation server. Read on for the method that turns it on and the members a script cannot use while it runs this way.

Enable the Automation Server

Important

Call EnableAutomationServer First. After your script creates the TXTextControl automation object, the first call must be EnableAutomationServer. It returns True if the control now works as an automation server and False otherwise.

All properties and methods of TXTextControl can then be used, except those that need a visible surface: dialog boxes, toolbars and all features that change how a document is displayed.

Members You Cannot Use

The following properties and methods cannot be used when TXTextControl works as an automation server:

MemberDescription
BackStyleReturns or sets a value indicating whether the background of the control is transparent or opaque.
ButtonBarHandleSpecifies the button bar control to be used with the control.
CanCopyInforms whether a part of the document has been selected and can be copied to the clipboard.
CanPasteInforms whether the clipboard contains a format that can be pasted into the document.
ClipPerforms clipboard operations.
ClipChildrenDetermines whether child controls are excluded from the update area.
ClipSiblingsDetermines whether sibling controls are excluded from the update area.
ControlCharsSpecifies whether control characters are visible.
DataTextEnables the control to be used as a bound control.
DataTextFormatDetermines the data format when the control is used as a bound control.
EnabledReturns or sets a value that determines whether the control can respond to user-generated events.
FindReplaceDisplays a Find or Replace dialog box.
FontDialogInvokes the built-in font dialog box.
FormFieldDialogInvokes the built-in dialog box for setting formatting attributes of form fields.
GetLineFromPointReturns the index of the line which contains a given point.
hWndReturns a handle to the control.
InputPosFromPointReturns the text input position belonging to a certain geometric position.
ListAttrDialogInvokes the built-in dialog box to set the attributes of bulleted and numbered lists.
LockWindowUpdateDisables or reenables redrawing.
MousePointerReturns or sets a value indicating the type of mouse pointer.
PageNumberDialogInvokes the built-in dialog box for setting formatting attributes of page numbers.
ParagraphDialogInvokes the built-in paragraph attributes dialog box.
RefreshForces a complete repaint of the control.
RulerHandleSpecifies the horizontal ruler control to be used with the control.
SaveToMemoryReturns a byte array containing text data in a specified format. Use SaveToMemoryBuffer instead.
ScrollBarsReturns or sets a value indicating whether the control has horizontal or vertical scroll bars.
ScrollPosXSpecifies the position of the horizontal scroll bar.
ScrollPosYSpecifies the position of the vertical scroll bar.
SizeModeSpecifies whether the control can be moved or resized at run time.
StatusBarHandleSpecifies the status bar control to be used with the control.
StyleDialogInvokes the built-in dialog box for creating, deleting and modifying formatting styles.
TabDialogInvokes the built-in dialog box that enables tabs to be set.
TableAttrDialogInvokes the built-in table attributes dialog box.
TableInsertDialogInvokes the built-in table insert dialog box.
VerticalRulerHandleSpecifies the vertical ruler control to be used with the control.
ZoomFactorSpecifies the zoom factor for the control.