InputString and proper font attributes

  • Hi,

    I have a lot of methods that uses InputString/InputStringW to insert text into TWPRichText.

    In most of these methods CP moves to another place in the document, then it inserts the text, and then finally CP jumps back to where it came from.

    The probem is that the text inserted is inserted with the font where the CP origionally came from. I just want to use the font attributes used where it is inserted.

    I have tried to use WritingAttr and CurrentCharAttr but haven't succeced. Can someone please help me.

  • Works like a charm.

    What if I want to force special font attributes to the text inserted. I guess I have to use:

    TextCursor.WritingTextAttr

    Are there any methods to easily copy all attributes from current CP to writingAttr?

    /Paw