---
title: Textbox
slug: textbox
description: This document offers an extensive list of variables suitable for vpx implementation, covering various aspects such as background and font colors, text formatting, font types, positioning, size, alignment, visibility, transparency, and DMD image enablement
docTags: 
createdAt: 2019-11-29T05:17:55.000Z
---

## Variables

*Variables are items in vpx you can set, adjust or call.*

| Call                  | Detail                                                                                                                                                                    | Example |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| BackColor(OLE\_COLOR) |                                                                                                                                                                           |         |
| FontColor(OLE\_COLOR) |                                                                                                                                                                           |         |
| Text(string)          |                                                                                                                                                                           |         |
| Font                  |                                                                                                                                                                           |         |
| Name(string)          |                                                                                                                                                                           |         |
| X(float)              |                                                                                                                                                                           |         |
| Y(float)              |                                                                                                                                                                           |         |
| Width(float)          |                                                                                                                                                                           |         |
| Height(float)         |                                                                                                                                                                           |         |
| Alignment             |                                                                                                                                                                           |         |
| IsTransparent         |                                                                                                                                                                           |         |
| TimerEnabled          |                                                                                                                                                                           |         |
| TimerInterval(int)    | set interval for triggering the timer (1 equals 1000 timer calls per second, 1000 equals 1 timer call per second, -1 makes it dependent on the FPS that a user can reach) |         |
| UserValue(any)        | can store any user defined value for re-use later-on                                                                                                                      |         |
| IntensityScale(float) | scales the color of the textbox                                                                                                                                           |         |
| Visible(bool)         |                                                                                                                                                                           |         |
| DMD(bool)             | enable DMD image via script connection                                                                                                                                    |         |

## Events

| Event   | Detail | Example |
| ------- | ------ | ------- |
| \_Init  |        |         |
| \_Timer |        |         |

```javascript
        dispinterface ITextboxEvents
        {
        properties:
        methods:
                [id(DISPID_GameEvents_Init)]  void Init();
                [id(DISPID_TimerEvents_Timer)]  void Timer();
        }
```

