Combo boxes display a read-only drop-down box that presents several items or values 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 the PPGLayout.AddEnumControl or PPGLayout::AddEnumControl method (siControlCombo is the default):
// 1D array of label,value pairs var aListItems = new Array( "carp", 0, "goldfish", 1, "piranha", 2, "trout", 3 ); oLayout.AddEnumControl( "Choice", aListItems );
You can also use the PPGLayout.AddItem or PPGLayout::AddItem method with the siControlCombo control type enum, but the PPGLayout.AddEnumControl or PPGLayout::AddEnumControl method is a little more convenient.