---
name: "CT CONTEXT MENU"
type: topic
source: https://community.bistudio.com/wiki/CT_CONTEXT_MENU
revid: 352167
updated: 2024-02-01T23:25:31Z
---

# CT CONTEXT MENU

### Introduction

> [!WARNING]
> Control with unknown application. It is used for the waypoint editing in the UAV terminal but is not reproducable in other displays. When creating it either by config or ctrlCreate command the following rpt error is logged:\
> **Do not create it this way**

#### Related commands & functions

- Commands: General
- Commands: UI Eventhandlers

#### 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_CONTEXT_MENU 14
```

### 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).

There are no base classes for this control type.

### Other Examples

The following control class is exported from the Arma 3 config.

```cpp
class RscDisplayUavTerminalWaypointMenu
{
    idc=108;
    type=CT_CONTEXT_MENU;
    font="RobotoCondensed";
    sizeEx="0.028*SafezoneH";
    style=0;
    colorBackground[]={0,0,0,0.5};
    colorBorder[]={0,0,0,0};
    colorSeparator[]={0.94999999,0.94999999,0.94999999,1};
    colorSelectBackground[]={1,1,1,0.30000001};
    colorChecked[]=
    {
        "(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])"
    };
    colorEnabled[]={1,1,1,1};
    colorDisabled[]={1,1,1,0.25};
    x=0;
    y=0;
    w=0;
    h=0;
};
```

<sub>Source: [BI Community Wiki — CT CONTEXT MENU](https://community.bistudio.com/wiki/CT_CONTEXT_MENU) (revision 352167).</sub>
