Softimage SDK Programmer's Guide > Customizing Softimage using the SDK > Custom Properties > Property Page Controls > Enum Controls >

# Radio Buttons

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 );

Note

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.

The following item attributes are available:

Available on all Controls also as a property on the PPGItem object: | Common to many Controls:
--- | ---
siUILabel siUIItems siUIType siUIWidthPercentage siUILabelPercentage siUILabelMinPixels | siUINoLabel siUIValueOnly siUIContinue