---
title: "RepeatArrowPad (Basic)"
canonical: "https://docs.cuesystem.com/space/CVCGC/402161665/RepeatArrowPad%20(Basic)"
format: markdown
---
> Macro (toc)

---

# Description

This object consists of four arrow buttons and one center button. All buttons have similar behavior to RepeatButton. When a button is pushed, it starts to generate an OnRepeat event periodically (with a time period defined by the property) until the button is released. The object uses three different time periods - first for LeftButton and RightButton, second for UpButton and DownButton, and third for CenterButton.

![image](media://ee1471d8-2ace-4394-84bc-b58d5bb8544e)

# Properties

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Behavior |
| RepeatLeftRight | Time | Any positive | 0:0.4 | Period of generating events while LeftButton or button RightButton are pushed. |
| RepeatUpDown | Time | Any positive | 0:0.4 | Period of generating events while UpButton or button DownButton are pushed. |
| RepeatCenter | Time | Any positive | 0:0.4 | Period of generating events while button CenterButon is pushed. |
| Appearance |
| Opacity | Byte | 0 to 255 | 255 | Opacity of the entire object. |

# Functions

## SetCenterRepeatInterval

This function sets RepeatInterval of the CenterButton. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).

#### Syntax

```visualbasic
Function SetCenterRepeatInterval(newrepeatinterval As Time) As Boolean
```

## GetCenterRepeatInterval

This function returns the current RepeatInterval of the CenterButton.

#### Syntax

```visualbasic
Function GetCenterRepeatInterval() As Time
```

## SetLeftRightRepeatInterval

This function sets RepeatInterval of the LeftButton and RightButton. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).

#### Syntax

```visualbasic
Function SetLeftRightRepeatInterval(newrepeatinterval As Time) As Boolean
```

## GetLeftRightRepeatInterval

This function returns the current RepeatInterval of the LeftButton and RightButton.

#### Syntax

```visualbasic
Function GetLeftRightRepeatInterval() As Time
```

## SetUpDownRepeatInterval

This function sets RepeatInterval of the UpButton and DownButton. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).

#### Syntax

```visualbasic
Function SetUpDownRepeatInterval(newrepeatinterval As Time) As Boolean
```

## GetUpDownRepeatInterval

This function returns the current RepeatInterval of the UpButton and DownButton.

#### Syntax

```visualbasic
Function GetUpDownRepeatInterval() As Time
```

# Events

## OnRepeatCenter

This event is periodically generated while the CenterButton is pushed.

#### Syntax

```visualbasic
Function OnRepeatCenter As Process ()
```

## OnRepeatDown

This event is periodically generated while the DownButton is pushed.

#### Syntax

```visualbasic
Function OnRepeatDown As Process ()
```

## OnRepeatLeft

This event is periodically generated while the LeftButton is pushed.

#### Syntax

```visualbasic
Function OnRepeatLeft As Process ()
```

## OnRepeatRight

This event is periodically generated while the RightButton is pushed.

#### Syntax

```visualbasic
Function OnRepeatRight As Process ()
```

## OnRepeatUp

This event is periodically generated while the UpButton is pushed.

#### Syntax

```visualbasic
Function OnRepeatUp As Process ()
```