toggleWindowVisibility
[string]
toggleWindowVisibility は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
ウィンドウの表示と非表示を切り替えます。ウィンドウが指定されていない場合、カレント ウィンドウ(作成された最新のウィンドウ)が使用されます。window コマンドの vis/visible フラグも参照してください。なし
// Create a window that won't be deleted when it is closed // or made invisible. To delete this window you will need // to explicitly call the 'deleteUI' command. // string $window1 = `window -retain`; columnLayout; checkBox; checkBox; checkBox; button -label "Close" -command ("window -edit -visible false $window1"); // Create another window with a button that will toggle the visibility // of the first window. // string $window2 = `window`; columnLayout; button -label "Toggle Window Visibility" -command ("toggleWindowVisibility " + $window1); showWindow $window1; showWindow $window2;