Go to: Synopsis. Return value. MEL examples.
toggleWindowVisibility is undoable, NOT queryable, and NOT editable.Toggle the visibility of a window. If no window is specified then the current window (most recently created) is used. See also the window command's vis/visible flag.
// 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;