remove()

種類メソッド
書式
オブジェクト.remove(参照番号)
オブジェクト.remove(テキスト)
オブジェクト.remove(チャイルド)
解説
指定されたコントロールオブジェクト(ボタンなど)を削除します。
サンプルコード
winObj = new Window("palette","Sample",[200,150,500,250]);
winObj.add("button",[10,10,100,30],"button 1");
winObj.add("button",[110,10,200,30],"button 2");
btnObj = winObj.add("button",[10,40,100,60],"remove");
btnObj.onClick = function() {
winObj.remove(0);
}
winObj.show();
実際のスクリプトをダウンロード