saveShelf
string string
saveShelf は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
このコマンドは指定されたシェルフ(1 番目の引数)を指定されたファイル(2 番目の引数)に保存します。boolean | 成功の場合は true です。 |
// Create a window with a shelf in it. // string $window = `window`; string $tabs = `tabLayout`; string $shelf = `shelfLayout`; shelfButton -image1 "commandButton.xpm" -command ("print \"Hello\\n\""); tabLayout -edit -tabLabel $shelf "Example Shelf" $tabs; showWindow $window; // At this point the example would be made more interesting if you // put some additional items on this shelf. // Now save the shelf in the temp directory. // string $tempDir = `internalVar -userTmpDir`; saveShelf $shelf ($tempDir + "ExampleShelf");