WPTools 5 has the ability to store different text blocks in one RTFData collection. (WPRichText1.Memo.RTFData).
Each of this elements is a TWPRTFDataBlock. The TWPRTFDataBlock can be the body text (currently only one at a time) or header or footer texts.
In PageLayout mode the RTF-Engine can display several of this blocks on the same virtual page. The TWPRTFDataBlock which delivers the part which is distibuted on several pages (page break) must be of the kind 'wpIsBody'. The TWPRTFDataBlock which is the main block is selected by the property DisplayedText.
The cursor can be also in the header or footer area. This is changed by the property ActiveText or (WPRichText.Memo.Cursor.RTFData).
The property WorkOnText is the old fasioned way to change the ActiveText. If you set it to wpIsHeader the header will be the active text and subsequent InputString commands will modify this TWPRTFDataBlock.
Any comments and follow up questions are very welcome.
Julian Ziersch