New Features

Text Control 29.0 provides the following new features:

Feature Description
MFC Version The Microsoft Foundation Classes library has been updated from version 9.0 to version 12.0 (MFC120U.DLL).
Using a Table of Contents A table of contents can be automatically generated from the structure levels defined for each paragraph in the document. The dialogbox for setting paragraph attributes has been enhenced to specify a structure level, possible values are 0 to 10. A structure level of 0 means, that the paragraph belongs to the body of the document. A level can be specified for each paragraph in the document, but it is more common to define it as an attribute of a paragraph style. To add a new table of contents to the document, the TXTextControl.TableOfContentsDialog method can be used which offers the end-user a dialgbox for setting all necessary parameters. The document then is searched for all paragraphs with the specified structure levels, generates the table of contents with or without page numbers and adds it at the current text input position. The table of contents is formatted with font and paragraph attributes found in the contained paragraphs. Furthermore, for each level a formatting style is generated so that the end-user can alter these attributes in a simple way. The automatically created styles are named TOC_Title, TOC_Level1, TOC_Level2, .... With the TXTextControl.TableOfContentsDialog the properties of a table of contents can be defined, the most important being the minimum and maximum structure level of the paragraphs it should contain. Further attributes are a title and the inclusion of page numbers. A document can contain multiple tables of contents consisting of paragraphs with different levels. Automatic link generation is also possible. In this case each entry in the table of contents is defined as a text field with the TXTextControl.FieldType txFieldInternalLink and a corresponding link target. When the end-user clicks an entry in the table of contents while pressing the CTRL-key, the document scrolls to the corresponding page in the document. Events occur, when a table of contents is created (TableOfContentsCreated), deleted (TableOfContentsDeleted), entered (TableOfContentsEntered) or left (TableOfContentsLeft).