New Features

Text Control 19.0 provides the following new features:

Feature Description
Page Numbering Text Control now supports additional features for showing page numbers. For each section in the document page numbers can either be continued from the previous section or can be restarted with a certain start number. The SectionRestartPageNumbering property has been implemented to support this feature. The new field type txFieldAllPages can be used to handle a text field which shows the number of pages contained in the document or section. Such a field can be defined with the FieldType property. A new built-in dialog box can be used to alter the formatting and numbering attributes of page number fields. It can be opened with the PageNumberDialog method.
Built-in Context Menus Text Control now offers built-in context menus. Depending on the area where the right mouse button has been clicked, a menu with standard options for this area is shown. There is a menu for standard text formatting, a menu for inserting or editing headers and footers including altering page settings and a menu for handling images and text frames. Before a built-in context menu is opened, a ContextMenuOpening event occurs. When the Cancel parameter of this event is set to True, opening the menu is suppressed.
Headers and Footers Text Control now supports different headers and footers for the even and odd pages of the whole document or of a single section. A document's section can either contain the same header or footer for all pages or different headers and footers for even and odd pages. All Header and Footer properties and methods have been extended with the txEvenHeader and txEvenFooter constants for the HeaderFooter parameter. Depending on whether an even header or footer has been defined, the txHeader and txFooter settings either specify the odd header or footer or the header or footer of both pages. The built-in SectionFormatDialog dialog box has been extended to enable an end-user to select different headers and footers for even and odd pages. When a header or footer is activated, a dividing line between the header or footer and the main text is displayed instead of a frame. The dividing line has a label indicating which type of header or footer (even, odd, first page) is activated. The HeaderFooterStyle property has been extended, so that the former activation styles are still possible. The DisplayColor property has been extended to support designing the colors of dividing lines and labels.
Tables Text Control now has a built-in dialog box to insert tables. A user can specify the number of columns and rows and the column width. Further options define whether the table has a header and whether the table's rows can break across a page border. The new TableInsertDialog method can be called to open this dialog. Furthermore, the new TableCellSelect method can be used to select a part of a table: cell, row, column or the complete table. The new TableDelete method has been implemented to delete a complete table from the document.
Printing The new PrintDialog method opens a built-in dialog box and then prints a document. The dialog can be used to select a printer, a range of pages and a number of copies.
Control Characters Text Control now has a control character which shows the anchor position of an anchored object. Anchored objects are positioned relative to a paragraph. The anchor postion is shown left of this paragraph's first character. The anchor is shown only when an anchored object is selected. Additionally individual control characters can be shown permanently on the screen independently of the ControlChars property. The new PermanentControlChars property can be used to set this feature.