List Box

 

List boxes display a read-only text 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 PPGLayout.AddItem method with the siControlListBox control type enum and then populate the list with the PPGItem.UIItems property:

var oListBox = oLayout.AddItem( "MyList", "", siControlListBox );
oListBox.SetAttribute( siUICY, 100 );

// 1D array of key,value pairs (since this is a string, just repeat them)
var aListItems = new Array( 
   "light", "light", 
   "sphere", "sphere", 
   "Camera", "Camera", 
   "Camera_Root", "Camera_Root", 
   "Camera_Interest", "Camera_Interest" 
);
oListBox.UIItems = aListItems;

The following item attributes are available:

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

Common to many Controls:

siUILabel

siUIItems

siUIType

siUIWidthPercentage

siUILabelPercentage

siUILabelMinPixels

siUINoLabel

siUIValueOnly

siUIContinue

siUICX

siUICY

siUIStyle



Autodesk Softimage v7.5