Delphi 2007
WPTools 6.16.2
We have some specialized functions that programmatically move the text cursor around to various locations on a TWPRichText, using the Finder to home in on specific key sequences (Finder.MoveToFoundPositionEnd). The existing text at those locations may be in a variety of formats - e.g plain, bold, italic, specific font faces or sizes, etc.
We have a problem where, for example, the text cursor jumps to a location where the text is bold...
This is some bold text
Newly typed text at that location however is not bold.
This is inserted into some bold text
If instead of using our programmatic navigation we simply click on that same location with the mouse, the text is bold (or red or italic or whatever) just like it should be. So, clearly in using the Finder we're missing some crucial command that says "Anything typed here should be in the same format as the text around it."
How can we force the CurrAttr to refresh/update itself to match the text attributes at the text cursor location?
Thanks