Basically, I have two richedit controls. Plain old ASCII text is loaded into one, some words are "selected", and as the text is copied into the other richedit control, the selected words are replaced with something else.
The problem I'm having is that the re.Text vs. re.Lines.Text properties produce different SELSTART values for the same words in the display, so it's really complicated to keep them synchronized based on SELSTART values.
So when I copy the text over to the second richedit control, some input texts replace the selected words properly, but some of them are skewed. Sometimes they're off by one letter per line counting from the start of the file, and sometimes they're off by one letter per line relative to the first line in the paragraph.
This behavior varies for indeterminate reasons; some files loaded via LoadFromFile work fine, others get skewed. Some text pasted from the clipboard works fine, some gets skewed.
The problem relates to differences in how "newlines" are counted -- sometimes <CRLF> is counted as one char, sometimes as two.
It's driving me absolutely NUTS...

The question I have is this: has anybody else run into this problem with standard TRichEdit controls and tell me for sure that switching to TRichView will solve the problem?