There are five kinds of option/list groups available that are collectively referred to as Enum Controls and are can be added using the PPGLayout.AddEnumControl or PPGLayout::AddEnumControl method:
List Box —list of items that appear in a window. The user can select only one at a time.
Combo/Drop-Down Box —list of items that appear in a drop-down box. The user can select only one at a time and the current selection appears in single-line field. This control is best suited for large lists.
Radio Buttons —list of options with a small selectable circle appearing beside each choice (text). The user can select only one at a time. This control is best suited for very small lists.
Icon Buttons —group of selectable icons. The user can select only one at a time. By default, the icons appear on the same line.
Bitfield —group of check boxes for each numerical value in the control. The user can select any number of boxes and the value of the parameter is set to the sum of the checked items.
The value of the underlying parameter takes on the value of the selected item (except for the Bitfield control, which updates the parameter with the sum of selected items). The user cannot change the item values directly, but they can be changed dynamically through Logic.
The list of items that is displayed is controlled through the property page layout, not through its associated parameter on the underlying property set. This means that you have to set the array of values to be displayed by assigning them as an array of label-value pairs using the PPGItem.UIItems or PPGItem::GetUIItems or PPGItem::PutUIItems property.
You can update this list dynamically, but because these values are actually controlled by the layout of the property page (rather than a parameter in the underlying property set), you need to use the PPG.Refresh method to update the display.
When retrieving the array of values on the PPGItem.UIItems or PPGItem::GetUIItems or PPGItem::PutUIItems property, bear in mind that a safearray is returned. For JScript, this means that you have to assign it to a VBArray object and then convert that to a native JScript array.
For more information on changing these values dynamically, see Changing the Layout.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License