Moving cursor in TextArea

BlitzPlus Forums/BlitzPlus Programming/Moving cursor in TextArea

Anyone got any ideas about how to move the cursor around a text area gadget? I've tried using:

SendMessage() in conjunction with EM_LINESCROLL.

..but it doesn't seem to change anything.

Help!

untested idea:
What if you tried sending the EM_SETSEL message (Set Selection) with the same starting and ending character positions?

EM_SETSEL

Let us know if it works as expected.

soja - that works brilliantly, thanks a lot! :)

Awesome! You owe me one (for the next time I'm stuck) ;-)