---
title: "Common section of Buttons (Multicolor)"
canonical: "https://docs.cuesystem.com/space/CVCGC/454623235/Common%20section%20of%20Buttons%20(Multicolor)"
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, size, and color. In addition, both Icons have OffsetX and OffsetY for precise adjustment. In addition, both Icons have OffsetX and OffsetY for precise adjustment.

You can set UpColor, DownColor, and UpFontColor, DownFontColor.

![image](media://d84d1e50-8e5d-441a-909c-98b2722acefc)

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

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