Radio button controls display a list of options that the user can select along with an optional animation divot and an optional label. They are associated to an underlying parameter of any numeric type.
You create them using the PPGLayout.AddEnumControl or PPGLayout::AddEnumControl method with the siControlRadio control type enum:
// 1D array of label,value pairs var aListItems = new Array( "Slow", 0, "Fast", 1 ); oLayout.AddEnumControl( "MyRadio", aListItems, "", siControlRadio );
You can also use the PPGLayout.AddItem or PPGLayout::AddItem method with the siControlRadio control type enum, but the PPGLayout.AddEnumControl or PPGLayout::AddEnumControl method is a little more convenient.