Controls

コントロールを使うことによって、 ボタン、スクロールバー、メニュー、テキストフィールドなどを扱うことができるようになる。

Controlsの一覧

window -menuBar true;
columnLayout -adjustableColumn true;
	menu -label "Menu";
		menuItem -label "MenuItem 1";
		menuItem -label "MenuItem 2";
		menuItem -label "MenuItem 3";

	text -label "Text";

	button -label "button";

	text -label "symbolButton";
	symbolButton -image "/CG/CGtec/abe/src/test/maya/tmp.xpm";

	checkBox -label "CheckBox 1";
	checkBox -label "CheckBox 2";
	checkBox -label "CheckBox 3";

	separator;

	radioCollection;
		radioButton -label "RadioButton 1" -select;
		radioButton -label "RadioButton 2";
		radioButton -label "RadioButton 3";

	text -label "intScrollBar";
	intScrollBar;

	text -label "intSlider";
	intSlider;

	text -label "textScrollList";
	textScrollList -numberOfRows 3 -allowMultiSelection true
		-append "textScrollList 1"
		-append "textScrollList 2"
		-append "textScrollList 3"
		-selectItem "textScrollList 1";

	text -label "textField";
	textField -width 50 -height 30;

	optionMenu -label "OptionMenu";
		menuItem -label "OptionMenu 1";
		menuItem -label "OptionMenu 2";
		menuItem -label "OptionMenu 3";
	
	text -label "PopupMenu";
		popupMenu ;
			menuItem -label "PopupMenu 1";
			menuItem -label "PopupMenu 2";
			menuItem -label "PopupMenu 3";
showWindow;

[sample of controls]

参考


prev | next
Home | Contents
Mail