Bitfield
 
 
 

Bitfield controls display a group of check boxes that the user can select along with an optional animation divot and an optional label. They are associated to an underlying Integer parameter.

You create them using the PPGLayout.AddEnumControl or PPGLayout::AddEnumControl method with the siControlCheck control type enum:

// 1D array of label,value pairs
var path = XSIUtils.BuildPath(
	Application.InstallationPath(siFactoryPath),
	"Application", "layouts", "bitmaps"
);
var aListItems = new Array( 
	"Bit 0",	0, 
	"Bit 6", 	1,
	"Bit 2",	2,
	"Bit 7",	3
);
oLayout.AddEnumControl( "MyBitField", aListItems, "", siControlCheck );
Note

You can also use the PPGLayout.AddItem or PPGLayout::AddItem method with the siControlCheck 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: