# SetEditBoxFocus

## Description

Toggles the focus status of this edit box, when focus is set to 1 the cursor starts flashing and any key presses will add text to the edit box. When set to 0 the cursor disappears and text will not be added.

## Definition

SetEditBoxFocus( index, focus )

void agk::SetEditBoxFocus( UINT index, int focus )

## Parameters

- index - The ID to modify.
- focus - The new state of the edit box, 1 for active, 0 for inactive.