---
title: "RadioButton (Generic)"
canonical: "https://docs.cuesystem.com/space/CVCGC/419495937/RadioButton%20(Generic)"
format: markdown
---
> Macro (toc)

---

# Description

This button is a two-state type of button and it enables users to join more buttons to a group of “just one button” type. In this type of button group, one button is in State Down and other buttons are in State Up. Every push of button sets State Down of pushed button and other joined buttons will go to the State Up. Button generates OnPush event.

![image](media://482f52c5-5c81-486e-85fa-36a1063c8466)

RadioButton can also be used for navigation between different Pages or FloatingWindows. RadioButton should be joined (by the Join property) with Page (FloatingWindow). If any RadioButton is pushed, Page (FloatingWindow) with the same join and corresponding NavigationBarButtonID will open, while Page (FloatingWindow) with a different NavigationBarButtonID will close. Page (FloatingWindow) with different Join will not be affected.

# Properties

See section [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 |
| Behavior |
| Join |  | One of the existing joins | Empty | It is used for joining more buttons together to one button group. |
| DefaultState | Boolean | Down   
Up | Up | Default state of the button. |
| NavigationBara ButtonID | Long | 0 to maximum number of buttons in joined Navigation Bar | 0 | Value for joiningNavigation Bars. |

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

## IsButtonPressed

By this function, you can test whether a button is pushed (function returns True) or not (return value is False).

#### Syntax

```visualbasic
Function IsButtonPressed() As Boolean
```

## SetStateDown

This function sets a button to State Down. The function returns True.

#### Syntax

```visualbasic
Function SetStateDown() As Boolean
```

# Events

## OnPush 

This event is generated when the button is pushed.

#### Syntax

```visualbasic
Event OnPush As Process()
```