# SetEditBoxCursorPosition

## Description

Sets the cursor to the specified position in the text, i.e. position 0 is left of the first character, position 1 is left of the second character, and so on. If the position value is out of range it will be clamped to the nearest character. The current cursor position is guaranteed to be in view of the user, so this can be used to left or right justify text by setting the cursor to the far left or right of the text.

## Definition

SetEditBoxCursorPosition( index, pos )

void agk::SetEditBoxCursorPosition( UINT index, int pos )

## Parameters

- index - The ID of the edit box to modify.
- pos - The new position of the cursor