ジャンプ先: 概要. 戻り値. フラグ. MEL 例.
workspaceControlState [-defaultTopLeftCorner int int] [-defaultWidthHeight int int] [-exists] [-height int] [-leftEdge int] [-maximized boolean] [-remove] [-topEdge int] [-topLeftCorner int int] [-width int] [-widthHeight int int]
string
workspaceControlState は、取り消し可能、照会可能、および編集可能です。
ワークスペース コントロールの希望するウィンドウ アトリビュートを作成または修正します。ワークスペース コントロールのサイズや位置は、アプリケーション セッション中は保持されます(ただし、位置はフローティング ワークスペース ドッキング パネルに単独で存在するワークスペース コントロールのみに適用されます)。ワークスペース コントロールを閉じると、既定のワークスペース コントロールの状態が作成されます。ワークスペース コントロールの状態に名前を付ける必要があり、その後は一致する名前を持つワークスペース コントロールのみに影響します。
なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
defaultTopLeftCorner, defaultWidthHeight, exists, height, leftEdge, maximized, remove, topEdge, topLeftCorner, width, widthHeight
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
コマンド内でフラグを複数回使用できます。
|
// Check if the window exists.
//
if (`window -exists ExampleWindow`) deleteUI -window ExampleWindow;
// Create a window.
//
window ExampleWindow;
columnLayout;
text -label "Size and position the window before closing it.";
button -label "Close" -command ("deleteUI -window ExampleWindow");
showWindow ExampleWindow;
// When the window is closed a window preference object is
// created for the window. It has the same name as the window
// object.
//
workspaceControlState -exists ExampleWindow;
// Query the window preference size and position.
//
workspaceControlState -query -topLeftCorner ExampleWindow;
workspaceControlState -query -widthHeight ExampleWindow;
// Create a window with the same name. When it is shown
// it will be sized and positioned according to the
// window preference.
//
if (`window -exists ExampleWindow`) deleteUI -window ExampleWindow;
window ExampleWindow;
columnLayout;
text -label "Size and position the window before closing it.";
button -label "Close" -command ("deleteUI -window ExampleWindow");
showWindow ExampleWindow;
// Delete the window preference and the window will have a
// default size and position.
//
workspaceControlState -remove ExampleWindow;
// Create the window one last time.
//
if (`window -exists ExampleWindow`) deleteUI -window ExampleWindow;
window ExampleWindow;
columnLayout;
text -label "Size and position the window before closing it.";
button -label "Close" -command ("deleteUI -window ExampleWindow");
showWindow ExampleWindow;