Moving cursor in TextArea

BlitzPlus Forums/BlitzPlus Programming/Moving cursor in TextArea

Beaker(Posted 2003) [#1]
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!


soja(Posted 2003) [#2]
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.


Beaker(Posted 2003) [#3]
soja - that works brilliantly, thanks a lot! :)


soja(Posted 2003) [#4]
Awesome! You owe me one (for the next time I'm stuck) ;-)