move textarea?

BlitzMax Forums/MaxGUI Module/move textarea?

slenkar(Posted 2009) [#1]
How would I move the textarea scrollbar so that a certain textline is visible? (without the mouse of course :))


jsp(Posted 2009) [#2]
Set the cursor to that position.


slenkar(Posted 2009) [#3]
do you know how?

Im looking through the commands and I cant see one that moves the cursor


jsp(Posted 2009) [#4]
The cursor position is where you select something in the TextArea.
For example to put the cursor at the end of a loaded text in the TextArea you could use:

SelectTextAreaText( YourText:TGadget,(TextAreaText(YourText).length),0 )

The TextAreaCursor command does only retrieve the current position.


slenkar(Posted 2009) [#5]
ok thanks!