# Context

This type represents the GUI context.

## Find﻿ <a href="#find" id="find"></a>

[<kbd><mark style="background-color:purple;">**Method**<mark style="background-color:purple;"></kbd>](#user-content-fn-1)[^1]

Finds a control by ID.

**Arguments**

| Name | Type     | Description |
| ---- | -------- | ----------- |
| `id` | `string` | Control ID. |

**Returns**

| Type                                                                    | Description                                                                    |
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| `<`[`Control`](https://lua2.fatality.win/api/instances/gui/control)`>?` | Casted control. Returns `nil` if the control was not found, or casting failed. |

**Example**

```lua
local some_cb = gui.ctx:Find('some_cb');
```

***

## user﻿ <a href="#user" id="user"></a>

<kbd><mark style="background-color:purple;">**Field**<mark style="background-color:purple;"></kbd>

Type: [`User_t`](https://lua2.fatality.win/api/instances/gui/context/user_t)

User's basic information.

[^1]: This field is a method and must be invoked using a colon (:)
