---
title: "RepeatCameraControlA (Aluminum)"
canonical: "https://docs.cuesystem.com/space/CVCGC/461406547/RepeatCameraControlA%20(Aluminum)"
format: markdown
---
> Macro (toc)

---

# Description

This object consists of six buttons: up, down, left, right, zoom in and zoom out. Each button has two states - State Up and State Down. The button is in State Down when it is pushed, otherwise, it is in State Up. When a button is pushed, it starts to generate OnRepeat event periodically with time period RepeatInterval until the button is released.

![image](media://c2ad476a-1ac8-4cf8-91cb-3fbcfdc9c79d)

RepeatCameraContolA (Aluminum) has defined background color preset.

![image](media://f461a1b2-229c-4b4c-a35a-a85b81632212)

# Properties

> Macro (excerpt)
> 
> See section [Common Section of Generic object collection | Properties](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/407535672/Common+Section+of+Generic+object+collection#Properties). In addition, this object uses the following properties.
> 
> |  |  |  |  |  |
> | --- | --- | --- | --- | --- |
> | Property Name | Data Type | Allowed Values | Default Value | Description |
> | Behavior |
> | RepeatIntervalLeftRight | Time | Any positive | 0:0.4 | Period of generating events while button is pushed. |
> | RepeatIntervalUpDown | Time | Any positive | 0:0.4 | Period of generating events while button is pushed. |
> | RepeatIntervalZoomInOut | Time | Any positive | 0:0.4 | Period of generating events while button is pushed. |
> | Appearance |
> | ButtonStyle | Long | Rounded Corner<br>Sharp Corner | Rounded<br>Corner | Button has rounded or sharp corners. |
> | Background | Boolean | Yes<br>No | Yes | Specifies whether the background is shown. |

# Functions

> Macro (excerpt)
> 
> See section [Common Section of Generic object collection | Functions](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/407535672/Common+Section+of+Generic+object+collection#Functions). In addition, this object uses the following functions.
> 
> ## SetRepeatIntervalLeftRight
> 
> This function sets RepeatIntervalLeftRight of the buttons left and right . The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).
> 
> #### Syntax
> 
> ```visualbasic
> Function SetRepeatIntervalLeftRight(newrepeatintervalleftright As Time) As Boolean
> ```
> 
> ## GetRepeatIntervalLeftRight
> 
> This function returns the current RepeatIntervalLeftRight of the buttons left and right.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetRepeatIntervalLeftRight() As Time
> ```
> 
> ## SetRepeatIntervalUpDown
> 
> This function sets RepeatIntervalUpDown of the buttons Up and Down. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).
> 
> #### Syntax
> 
> ```visualbasic
> Function SetRepeatIntervalUpDown(newrepeatintervalupdown As Time) As Boolean
> ```
> 
> ## GetRepeatIntervalUpDown
> 
> This function returns the current RepeatIntervalUpDown of the buttons up and down.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetRepeatIntervalUpDown() As Time
> ```
> 
> ## SetRepeatIntervalZoomInOut
> 
> This function sets RepeatIntervalCenter of the buttons zoom in and zoom out. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).
> 
> #### Syntax
> 
> ```visualbasic
> Function SetRepeatIntervalZoomInOut(newrepeatintervalzoominout As Time) As Boolean
> ```
> 
> ## GetRepeatIntervalZoomInOut
> 
> This function returns the current RepeatIntervalCenter of the buttons zoom in and zoom out.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetRepeatIntervalZoomInOut() As Time
> ```
> 
> ## SetButtonStyle
> 
> This function sets a newbuttonstyle to ButtonStyle. Function returns True. You can use the following predefined constants
> 
> - BUTTON_STYLE_ROUNDED_CORNER
> - BUTTON_STYLE_SHARP_CORNER
> 
> #### Syntax
> 
> ```visualbasic
> Function SetButtonStyle(newbuttonstyle As Long) As Boolean
> ```
> 
> ## GetButtonStyle
> 
> This function returns ButtonStyle.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetButtonStyle() As Long
> ```
> 
> ## SetBackground
> 
> This function sets a newbackground to Background. Function returns True.
> 
> #### Syntax
> 
> ```visualbasic
> Function SetBackground(newbackground As Boolean) As Boolean
> ```
> 
> ## GetBackground
> 
> This function returns Background.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetBackground() As Boolean
> ```

# Events

> Macro (excerpt)
> 
> ## OnRepeatUp 
> 
> This event is periodically generated while the button up is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatUp As Process()
> ```
> 
> ## OnRepeatDown 
> 
> This event is periodically generated while the button down is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatDown As Process()
> ```
> 
> ## OnRepeatLeft 
> 
> This event is periodically generated while the button left is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatLeft As Process()
> ```
> 
> ## OnRepeatRight 
> 
> This event is periodically generated while the button right is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatRight As Process()
> ```
> 
> ## OnRepeatZoomIn 
> 
> This event is periodically generated while the button zoom in is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatZoomIn As Process()
> ```
> 
> ## OnRepeatZoomOut 
> 
> This event is periodically generated while the button zoom out is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatZoomOut As Process()
> ```