var res =
"palette { 
    A: Button { text:'调出对齐面板' } 
}";
 var win = new Window (res);
win.show();
 win.A.onClick = function () { app.executeCommand(app.findMenuCommandId('Align')) };

Leave a Reply

Your email address will not be published.