リスト ボックス

 
 
 

リスト ボックスには、複数の項目または値を提示する読み取り専用テキスト ボックスと一緒に、オプションのアニメーション アイコン、およびオプションのラベルが表示されます。 これらは、任意の数値型の基本パラメータに関連付けられています。

これらを作成するには、PPGLayout.AddItem または PPGLayout::AddItem メソッドを、siControlListBox コントロール タイプ列挙型とともに使用し、その後リストに PPGItem.UIItems または PPGItem::GetUIItems または PPGItem::PutUIItems プロパティを設定します。

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;

使用可能な項目属性は次のとおりです。

すべてのコントロールで(また、PPGItem オブジェクトのプロパティとしても)使用可能な属性

多くのコントロールに共通の属性