移動先: 概要 戻り値 フラグ. MEL 例.

概要

setUITemplate [-popTemplate] [-pushTemplate] [string]

setUITemplate は 「元に戻す」が可能、「照会」が可能、「編集」が不可能 です。

このコマンドは、ELF コマンドのカレント(デフォルト)のコマンド テンプレートを設定します。特殊名 NONE を使用すると、テンプレートをカレントに設定しないようにすることができます。「uiTemplate」コマンドも参照してください。

戻り値

string現在選択されているコマンド テンプレートの名前。

戻り値の型は照会モードでは照会フラグが基になります。

フラグ

popTemplate, pushTemplate
ロング ネーム(ショート ネーム) 引数型 プロパティ
-pushTemplate(-pst) create
後からポップできるスタックにカレント テンプレートをプッシュします。
-popTemplate(-ppt) create
スタックからカレント テンプレートをポップし、スタック内の次のテンプレートをカレントに設定します。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : 1 つのコマンドで複数回使用可能なフラグ

MEL 例

//    Create a new template.
//
if (`uiTemplate -exists ExampleTemplate`) {
    deleteUI -uiTemplate ExampleTemplate;
}
uiTemplate ExampleTemplate;

button -defineTemplate ExampleTemplate
    -width 100 -height 40 -align "left";
frameLayout -defineTemplate ExampleTemplate
    -borderVisible true -labelVisible false;

//    Create a window and apply the template.
//
string $window = `window`;
setUITemplate -pushTemplate ExampleTemplate;
columnLayout -rowSpacing 5;

frameLayout;
columnLayout;
button -label "One";
button -label "Two";
button -label "Three";
setParent ..;
setParent ..;

frameLayout;
columnLayout;
button -label "Red";
button -label "Green";
button -label "Blue";
setParent ..;
setParent ..;

setUITemplate -popTemplate;

showWindow $window;