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

---

# Description

This object consists of seven buttons: previous, next, forward, rewind, play, pause and stop. Each button has two states - State Up and State Down. Button play, pause, and stop have the same behavior as PushButton. Buttons previous, next, forward, and rewind have the same behavior as RepeatButton. 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 an OnRepeat event periodically with the time period RepeatInterval until the button is released.

![image](media://2fc0899c-2d1f-443f-b2ef-2b4e35b932b2)

MediaTransportA (Aluminum) has defined background color preset.

![image](media://13a32666-2717-436f-810b-3e260e24bd94)

# 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 |
> | RepeatPreviousNextInterval | Time | Any positive | 0:0.4 | Period of generating events while button is pushed. |
> | RepeatIRewindForwardInterval | Time | Any positive | 0:0.4 | Period of generating events while button is pushed. |
> | DisplayMode | Long | One Line =1  
> Two Lines = 2 | Two Lines | Number of rows of buttons. |
> | Appearance |
> | ButtonStyle | Long | Rounded Corner  
> Sharp Corner | Rounded Corner | Button has rounded or sharp corners. |
> | Background | Boolean | Yes  
> 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.
> 
> ## SetRepeatPreviousNextInterval
> 
> This function sets RepeatPreviousNextInterval of the buttons previous and next. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).
> 
> #### Syntax
> 
> ```visualbasic
> Function SetRepeatPreviousNextInterval(newrepeatpreviousnextinterval As Time) As Boolean
> ```
> 
> ## GetRepeatPreviousNextInterval
> 
> This function returns the current RepeatPreviousNextInterval of the buttons previous and next.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetRepeatPreviousNextInterval() As Time
> ```
> 
> ## SetRepeatRewindForwardInterval
> 
> This function sets RepeatRewindForwardInterval of the buttons to rewind and forward. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).
> 
> #### Syntax
> 
> ```visualbasic
> Function SetRepeatRewindForwardInterval(newrepeatrewindforwardinterval As Time) As Boolean
> ```
> 
> ## GetRepeatRewindForwardInterval
> 
> This function returns the current RepeatRewindForwardInterval of the buttons rewind and forward.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetRepeatRewindForwardInterval() As Time
> ```
> 
> ## SetDisplayMode
> 
> This function sets a newdisplaymode to DisplayMode. The function returns True. You can use the following
> 
> predefined constants
> 
> - DISPLAY_MODE_ONE_LINE
> - DISPLAY_MODE_TWO_LINES
> 
> #### Syntax
> 
> ```visualbasic
> Function SetDisplayMode(newdisplaymode As Long)As Boolean
> ```
> 
> ## GetDisplayMode
> 
> This function returns DisplayMode.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetDisplayMode() As long
> ```
> 
> ## SetButtonStyle
> 
> This function sets a newbuttonstyle to ButtonStyle. The 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. The 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)
> 
> ## OnTapPlay 
> 
> This event is generated when pressing the Play button.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnTapPlay As Process()
> ```
> 
> ## OnTapPause 
> 
> This event is generated when pressing the Pause button.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnTapPause As Process()
> ```
> 
> ## OnTapStop 
> 
> This event is generated when pressing the Stop button.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnTapStop As Process()
> ```
> 
> ## OnRepeatForward 
> 
> This event is periodically generated while the Forward button is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatForward As Process()
> ```
> 
> ## OnRepeatRewind 
> 
> This event is periodically generated while the Rewind button is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatRewind As Process()
> ```
> 
> ## OnRepeatNext 
> 
> This event is periodically generated while the Next button is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatNext As Process()
> ```
> 
> ## OnRepeatPrevious 
> 
> This event is periodically generated while the Previous button is pushed.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnRepeatPrevious As Process()
> ```