Text field position
TX Text Control 13.0 build on the solid text field handling capabilities of previous versions to bring improvements to the programmer and end user. Previously, certain hacks were required to determine the exact position inside a text field, or whether the caret was in a text field at all.
The latest version of TX Text Control is shipped with a new constructor for the InputPosition class. It determines the exact input position at the beginning or at the end of a TextField. This allows developers to position the caret after a text field. Thus, text that is entered by the end user, can either belong to the text field or to the surrounding text.
These new abilities offer developers more flexibility and control over text fields and their deployment in a word processing document.
FieldEntered and FieldLeft
After numerous customer requests, the functionality of these two events have been improved in TX Text Control 13.0:
FieldEntered | This event is fired when the caret is placed inside a text field. |
FieldLeft | This event is fired when the caret moves out of a text field. |
These events enable developers to trap whether the input position is inside a text field and thus whether to display a context menu or the property list that belongs to the current text field.
The events are fired when the user sets the caret into a text field, using the keyboard or mouse.
By deploying these new events, developers are able to synchronize all possible states in a word processing document.
Hypertext targets
Hyperlinks are an important part of any word processing package. Correspondingly, the ability to define hyperlinks and targets has been an integral feature of TX Text Control for several generations. Hyperlinks can lead to targets within the same document, to other word processing documents or even to URLs on the Internet.
TX Text Control 13.0 introduces a new graphical element that immediately informs end users of the exact location of a hyperlink target. This is illustrated in the following screenshot:






