---
title: "Common section of Buttons (Aluminum)"
canonical: "https://docs.cuesystem.com/space/CVCGC/454033748/Common%20section%20of%20Buttons%20(Aluminum)"
format: markdown
---
> Macro (toc)

---

# Description

This graphic collection includes six types of buttons. All these buttons differ in their behavior. Buttons are arbitrarily resizable. These buttons have the same behavior as [Buttons](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/417234965) (PushButton, TwoStatePushButton, RepeatButton, ToggleButton, LongPressButton, RadioButton) in class GenericObjects, but only other graphics attributes. All types of buttons may be rectangular or oval. All buttons can change their color for State Up and State Down.

Variable pictures and Icons can be used for State Up and State Down as well as text font style, size, and color. In addition, both Icons have OffsetX and OffsetY for precise positioning within the button.

The following figure shows how to use the button. Independent Icons can be used for State Up and State Down State as well as text font style and size. In addition, both Icons have OffsetX and OffsetY for precise adjustment. In addition, both Icons have OffsetX and OffsetY for precise adjustment.

AluminumButtons is the simplest of all Buttons regarding the setting in the Properties. There is only one UpColor and DownColor for Corner Type Rounded and one UpColor and DownColor for Corner Type Sharp.

![image](media://1d28ce2e-4b4b-4a86-97b5-a222ddc30cdb)

# Common Properties

See [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/417234965/GenericButtons#Common-Properties](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/417234965/GenericButtons#Common-Properties). In addition, this object uses the following properties.

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Appearance |
| ButtonStyle | Long | Rounded Corner  
Sharp Corner | Rounded Corner | Button has rounded or sharp corners. |
| UpColorOpacity | Byte | 0 - 255 | 50 % | Opacity of Up Color |

# Common Functions

See section [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/417234965/GenericButtons#Common-Functions](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/417234965/GenericButtons#Common-Functions). In addition, this object uses the following functions.

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