# FixEditBoxToScreen

## Description

By default sprites and edit boxes are created in world coordinates and SetViewOffset can be used to move around the world. Use this command to instead fix the edit box to the screen so it will move with the viewport when the viewport is moved around. You can still reposition an edit box that is fixed to the screen, it only affects what happens when the viewport is moved.

## Definition

FixEditBoxToScreen( index, fix )

void agk::FixEditBoxToScreen( UINT index, int fix )

## Parameters

- index - The ID to modify.
- fix - 0=to move when the view port moves, 1=stay fixed to the screen no matter where the viewport is moved to.