Combo/Drop-Down Box

 
 
 

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

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.

The following item attributes are available:

Available on all Controls also as a property on the PPGItem object:

Common to many Controls:

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License