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

Sorry, there may be a terminology misunderstanding here. When you said "position the cursor", I assumed you meant moce the insertion point for the edit control. Ie. Change the position where text would be inserted, if the user starts typing, assuming the control has focus.

If that is what you want, you will probably have to call update() afterwards in order for the effects to be reflected on the screen.

However, there are other possible interpretation of "position the cursor".

You might mean: move the mouse cursor over the richedit control window.

Or you might mean: Give the richedit control the focus, so that the text cursor (otherwise known as the insertion point), appears with the richedit control.

So, 1) you are going to have to clarify your problem (and terminology).

2) it would be much easier for people to assist you if you would post a minimal, working example of your code. It is always a good idea to have a small test app that omits the bulk of your program logic when learning a new library or control.


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."