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

---

# Description

This object consists of three buttons: forward, reverse, and stop.

![image](media://b8eed14c-4140-43d9-a723-6632da402594)

MotorContolA (Aluminum) has defined background color preset.

![image](media://8121e1f9-eba8-4693-af30-36d25a2f1b47)

# 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 |
> | LongPressTime | Time | Any positive | 0:0.4 | Time boundary between short and<br>long press. |
> | 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. |
> | FlipHorizontal | Boolean | Forward Left  
> Forward Right | Forward Right | The object flips horizontal the buttons forward and reverse. |
> | Type | Long | 0 = User  
> 1 = UpDownArrows  
> 2 = LeftRightArrows  
> 3 = OpenCloseArrows  
> 4 = CircularArrows  
> 5 = HorizontalBlinds  
> 6 = VerticalBlinds  
> 7 = Shade  
> 8 = InsectScreens  
> 9 = Awnings  
> 10 = ProjectionScreen  
> 11 = ProjectorLift  
> 12 = Gate  
> 13 = GarageDoor | UpDownArrows | Graphics selection buttons forward and reverse. User pictures is used, if Drag & Fit is selected. |
> | TypePictureSize | Long | 0 = Draw&Fit  
> 1 = 32x32  
> 2 = 64x64  
> 3 = 96x96  
> 4 = 128x128 | Draw&Fit | Select the image size in the type of forward and reverse buttons. If Drag&Fit is selected it picks biggest size which fits into object boundary. |
> | UserPictureForwardUp | AddressOf<br>_Picture | Any | Nothing | Picture placed to forward button in State Up. |
> | UserPictureReverseUp | AddressOf<br>_Picture | Any | Nothing | Picture placed to reverse button in State Up. |
> | UserPictureForwardDown | AddressOf<br>_Picture | Any | Nothing | Picture placed to forward button in State Down. |
> | UserPictureReverseDown | AddressOf<br>_Picture | Any | Nothing | Picture placed to reverse button in State Down. |

# 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.
> 
> ## SetLongPressTime
> 
> This function sets LongPressTime of the buttons forward and reverse. The function returns True on success or False if an error occurs (i.e. newrepeatinterval <= :.0).
> 
> #### Syntax
> 
> ```visualbasic
> Function SetLongPressTime(newlongprestime As Time) As Boolean
> ```
> 
> ## GetLongPressTime
> 
> This function returns the current LongPressTime of the buttons forward and reverse.
> 
> ```visualbasic
> Function GetLongPressTime() 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
> ```
> 
> ## SetFlipHorizontal
> 
> This function sets a newfliphorizontal to FlipHorizontal. Function returns True.
> 
> #### Syntax
> 
> ```visualbasic
> Function SetFlipHorizontal(newfliphorizontal As Boolean) As Boolean
> ```
> 
> ## GetFlipHorizontal
> 
> This function returns FlipHorizontal.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetFlipHorizontal() As Boolean
> ```
> 
> ## SetTypePictureSize
> 
> This function sets a newtypepicturesize to TypePictureSize. Function returns True. You can use the following predefined constants
> 
> - 0 = Draw&Fit
> - 1 = 32x32
> - 2 = 64x64
> - 3 = 96x96
> - 4 = 128x128
> 
> #### Syntax
> 
> ```visualbasic
> Function SetTypePictureSize(newtypepicturesize As Long) As Boolean
> ```
> 
> ## GetTypePictureSize
> 
> This function returns TypePictureSize.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetTypePictureSize() As Long
> ```
> 
> ## SetType
> 
> This function sets a newtype to Type. Function returns True. You can use the following predefined constants:
> 
> |  |  |  |  |  |  |
> | --- | --- | --- | --- | --- | --- |
> | Reverse button | Forward button | Allowed Values | Reverse button | Forward button | Allowed Values |
> |  |  | 0 = User | ![image](media://697abc91-f367-4912-8929-6c67a0ab542e) | ![image](media://51a63951-c1bb-4bbc-8dd1-c8a5849b7cc8) | 7 = Shade |
> | ![image](media://e80312d9-4f0b-4705-860a-e39b3649bf95) | ![image](media://2b29e27f-c4c3-4323-989f-4e1a034e21c7) | 1 = UpDownArrows | ![image](media://297fe91f-cb16-4538-a9a9-f6314ec98de0) | ![image](media://b4564f63-ab43-4730-a0f3-87af7b879267) | 8 = InsectScreens |
> | ![image](media://870fb46c-79e2-4215-bfb0-7b05b699f618) | ![image](media://94f86c25-6340-4dc2-b3a4-7b9d2ef869e4) | 2 = LeftRightArrows | ![image](media://9d03c723-ecd8-4389-8cda-d1d3bc944f89) | ![image](media://aa0b0d6b-ba8b-433a-a4d5-23b3572d872e) | 9 = Awnings |
> | ![image](media://5ed45c8b-8047-4a27-a6ee-24cced4292fd) | ![image](media://f9e2873d-4c3e-406f-be68-4fa19d6fd5f4) | 3 = OpenCloseArrows | ![image](media://cd593c2f-80d6-450a-ab5b-255891dbe145) | ![image](media://9571358f-bdd4-4eac-8d59-9ca313723059) | 10 = ProjectionScreen |
> | ![image](media://7a8bd17b-4656-43ac-af16-3808cb0b5397) | ![image](media://65379bb4-a1db-4463-95d2-42b8bcbf1cc1) | 4 = CircularArrows | ![image](media://cad7abc2-5009-480a-b05f-4ca5b0d83c2b) | ![image](media://0c2181c0-cf77-482a-bbbb-b16ba151b4c3) | 11 = ProjectorLift |
> | ![image](media://8ef8bf70-00bd-48bd-9a82-eca00a5b186a) | ![image](media://dcceac4b-4859-48a6-809e-d6cffe1381b6) | 5 = HorizontalBlinds | ![image](media://c1aec826-aab2-41f1-8a0f-aa67aad04943) | ![image](media://5a6d75d5-69f7-4ec9-b964-4ed715cc3c50) | 12 = Gate |
> | ![image](media://c0daae0b-9f97-47d7-8a32-d26e990a61b4) | ![image](media://7dae75d1-ea73-411b-8904-d691d191e05c) | 6 = VerticalBlinds | ![image](media://78afefba-6c64-4d62-830b-730c2b6ea507) | ![image](media://e22ad4c4-f9bd-4353-a2fd-259470042686) | 13 = GarageDoor |
> 
> #### Syntax
> 
> ```visualbasic
> Function SetType(newtype As Long) As Boolean
> ```
> 
> ## GetType
> 
> This function returns Type.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetType() As Long
> ```
> 
> ## SetUserPictureForwardUp
> 
> This function sets UserPictureForwardUp to newuserpictureforwardup. Function returns True.
> 
> #### Syntax
> 
> ```visualbasic
> Function SetUserPictureForwardUp(newuserpictureforwardup As AddressOf _Picture) As Boolean
> ```
> 
> ## GetUserPictureForwardUp
> 
> This function returns UserPictureForwardUp.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetUserPictureForwardUp() As AddressOf _Picture
> ```
> 
> ## SetUserPictureReverseUp
> 
> This function sets UserPictureReverseUp to newuserpicturereverseup. Function returns True.
> 
> #### Syntax
> 
> ```visualbasic
> Function SetUserPictureReverseUp(newuserpicturereverseup As AddressOf _Picture) As Boolean
> ```
> 
> ## GetUserPictureReverseUp
> 
> This function returns UserPictureReverseUp.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetUserPictureReverseUp() As AddressOf _Picture
> ```
> 
> ## SetUserPictureForwardDown
> 
> This function sets UserPictureForwardDown to newuserpictureforwarddown. Function returns True.
> 
> #### Syntax
> 
> ```visualbasic
> Function SetUserPictureForwardDown(newuserpictureforwarddown As AddressOf _Picture) As Boolean
> ```
> 
> ## GetUserPictureForwardDown
> 
> This function returns UserPictureForwardDown.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetUserPictureForwardDown() As AddressOf _Picture
> ```
> 
> ## SetUserPictureReverseDown
> 
> This function sets UserPictureReverseDown to newuserpicturereversedown. Function returns True.
> 
> #### Syntax
> 
> ```visualbasic
> Function SetUserPictureReverseDown(newuserpicturereversedown As AddressOf _Picture) As Boolean
> ```
> 
> ## GetUserPictureReverseDown
> 
> This function returns UserPictureReverseDown.
> 
> #### Syntax
> 
> ```visualbasic
> Function GetUserPictureReverseDown() As AddressOf _Picture
> ```

# Events

> Macro (excerpt)
> 
> ## OnTapForward 
> 
> This event is generated when the Forward button is released (in case that press is shorter then LongPressTime) or after LongPressTime from the start of pushing the button (in case that press is longer then LongPressTime). If press of the button is longer then LongPressTime, longpress parameter is True, otherwise longpress is False.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnTapForward As Process(longpress As Boolean)
> ```
> 
> ## OnTapReverse
> 
> This event is generated when the Reverse button is released (in case that press is shorter then LongPressTime) or after LongPressTime from the start of pushing the button (in case that press is longer then LongPressTime). If press of the button is longer then LongPressTime, longpress parameter is True, otherwise longpress is False.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnTapReverseAs Process(longpress As Boolean)
> ```
> 
> ## OnTapStop 
> 
> This event is generated when pressing the Stop button.
> 
> #### Syntax
> 
> ```visualbasic
> Event OnTapStop As Process()
> ```