---
name: "CT PROGRESS"
type: topic
aliases: ["DialogControls-ProgressBar"]
source: https://community.bistudio.com/wiki/CT_PROGRESS
revid: 259182
updated: 2021-06-06T13:56:05Z
---

# CT PROGRESS

### Introduction

Since Arma 2 the [progressSetPosition](../commands/progressSetPosition.md) command can be used to change the value.
Since Arma 3 v1.40 the fill color can be changed via the [ctrlSetTextColor](../commands/ctrlSetTextColor.md) command. Prior to Arma 2 there were no means to manipulate a progress bar.

#### Related commands & functions

- Commands: General
- Commands: UI Eventhandlers
- [progressSetPosition](../commands/progressSetPosition.md)
- [progressPosition](../commands/progressPosition.md)

#### Related User Interface Eventhandlers

- [Events: General](../topics/User_Interface_Event_Handlers.md#generic-events)

### Alphabetical Order

> [!NOTE]
> TokenNames common to most controls, such as x, y, w, h, text, idc... can be found [**here**](../topics/Arma~3A_GUI_Configuration.md#common-properties).

> [!WARNING]
> Not all of the listed attributes might have an effect nor might the list be complete. All attributes were gathered with [this](https://github.com/7erra/BIKI.VR/blob/master/fnc/generateCTPage.sqf) config crawler.

```cpp
#define CT_PROGRESS 8
```

#### C

##### colorBar

**Type:** Array

**Description:** Color of the filled progress bar.

```cpp
colorBar[] = {1,1,1,1};
```

##### colorFrame

**Type:** Array

**Description:** Color of the surrounding frame.

```cpp
colorFrame[] = {0,0,0,0};
```

#### T

##### texture

**Type:** String

**Description:** Texture of the bar. See [Procedural Textures](../topics/Procedural_Textures.md). If *texture* and *colorBar* are provided, both are mixed together, creating a different color.

```cpp
texture = "#(argb,8,8,3)color(1,1,1,1)";
```

### Default Classes

> [!NOTE]
> **Arma 3:** **AddOns:** Classes need to be initialised first with `class SomeClass;`
>
> ---
>
> **Missions:** Since Arma 3 v2.02 one can use `import SomeClass;` to initialise a class (see the [import](../topics/import_~28Config~29.md) keyword).
>
> In older versions, use `"Default" call BIS_fnc_exportGUIBaseClasses;` and paste the result into the [description.ext](../topics/Description.ext.md).

#### RscExample

```cpp
class RscProgress
{
    onLoad = "_this spawn { for '_i' from 0 to 1 step 0.01 do { (_this # 0) progressSetPosition _i; sleep 0.01 } }";
    deletable = 0;
    fade = 0;
    access = 0;
    type = CT_PROGRESS;
    style = ST_HORIZONTAL;
    colorFrame[] = {0,0,0,0};
    colorBar[] =
    {
        "(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])",
        "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])",
        "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",
        "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.8])"
    };
    x = 0.344;
    y = 0.619;
    w = 0.313726;
    h = 0.0261438;
    shadow = 2;
    texture = "#(argb,8,8,3)color(1,1,1,1)";
};
```

<sub>Source: [BI Community Wiki — CT PROGRESS](https://community.bistudio.com/wiki/CT_PROGRESS) (revision 259182).</sub>
