TWPRichEdit: Text and SelText ...

  • Howdy,

    I've inheritied an older app. which is using a 3rd party
    replacement for RichEdit: TWPRichEdit (WPTools, ver 4.22a).
    I'm attempting to add some new functionality which will
    allow formatting based on selected (highlighted) text.

    With the above in mind, I've noticed the following while
    debugging:
    1. When the entire contents of my richedit is selected,
    the value of Text property is not equal to the value of
    the SelText property.
    2. Here is an example to show the diff.'s between the
    Text & SelText property contents:
    Memo.Text := 'TableName, '#$D#$A''
    Memo.SelText := 'TableName, '#$D''

    My questions: Where is the (above) #$A text coming from
    in the Text propery and why isn't it also present within the
    SelText property?

    Thanks for any & all help,