# Creating a Grouped Radio button Compound Object

Create a compound object with multiple radio buttons grouped together.

When [List] is enabled for a Compound Object Property, a single Compound Object Property can be set to multiple objects. After placing the Compound Object on the screen, assign variables to each property.

## Example Compound Object

## Setting Workflow

1. Create Compound Object Properties
2. Set up Parts

## Create Compound Object Properties

### Compound Object Explorer: [Compound Object Library] → [Compound Object1] → [Properties]

Create the following properties

#### Compound Object Properties:

Parent element

[Name] | [Display Name] | [Type] | [List]
RadioGroup | RadioGroup | [BOOL] |

Child element

[Name] | [Display Name] | [Type]
[Item] | Button | [BOOL]

## Set up Parts

### Compound Object Explorer: [Compound Object Library] → [Compound Object1]

Set the properties of the Compound Object.

#### Compound Object properties:

Tab | Sub Tab | Property | Value
[Function] | [Basic] | [RadioGroup] | 3

Drag and drop the following objects from the [Tool Chest] to the [Layout].

#### Radio Button object (name: RadioButton1) property:

Tab | Sub Tab | Property | Value
[Function] | [Basic] | [Group ID] | 1
[Current Value] | [Compound Object] [Name]: Item (After selection, $CO.RadioGroup[0] is displayed.)

#### Radio Button object (name: RadioButton2) property:

Tab | Sub Tab | Property | Value
[Function] | [Basic] | [Group ID] | 1
[Current Value] | [Compound Object] [Name]: Item (After selection, change the element number to 1. $CO.RadioGroup[1])

#### Radio Button object (name: RadioButton3) property:

Tab | Sub Tab | Property | Value
[Function] | [Basic] | [Group ID] | 1
[Current Value] | [Compound Object] [Name]: Item (After selection, change the element number to 2. $CO.RadioGroup[2])