setCursorPosition()

Sets the cursor position to a specific coordinate.

Synopsis

int setCursorPosition(int x, int y [, bool globalPos = false]);

Parameters

Parameter Description
x X coordinate (Position)
y Y coordinate (Position)
globalPos Defines if global coordinates or panel relative coordinates are used.

Description

Allows to set the cursor position. The stated coordinates can be either global coordinates or panel relative coordinates.

Sets the cursor position to the coordinates 100:100 relative to the panel position.

main()
{
setCursorPosition(100,100);
}

Assignment

UI

Return value

getCursorPosition()