in reply to Re^5: Cursor at end of Richedit control
in thread Cursor at end of Richedit control

And that works for you? Cos it doesn't for me.

Using -1 is slightly easier than querying TextLength(), but without the Scroll(), it doesn't cause the selection to be visible if the file is longer than then window. At least not for me.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."
  • Comment on Re^6: Cursor at end of Richedit control