Icon Buttons

 
 
 

Icon button controls display a group of bitmap icons 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 siControlIconList control type enum.

// 1D array of iconpath,value pairs
var path = XSIUtils.BuildPath(
	Application.InstallationPath(siFactoryPath),
	"Application", "layouts", "bitmaps"
);
var aListItems = new Array( 
	path+"\hairpanel.bmp",				0, 
	path+"\toolbar_highlight.bmp", 	1,
	path+"\weightpanel.bmp",			2
);

oLayout.AddEnumControl( "PanelPicker", aListItems, "Panel Picker", siControlIconList );
Note

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